Update of /cvsroot/nutch/nutch/src/java/net/nutch/db
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18987/src/java/net/nutch/db

Modified Files:
        WebDBWriter.java 
Log Message:

  Fix small WebDB bug.



Index: WebDBWriter.java
===================================================================
RCS file: /cvsroot/nutch/nutch/src/java/net/nutch/db/WebDBWriter.java,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -d -r1.49 -r1.50
*** WebDBWriter.java    30 Jan 2004 22:11:43 -0000      1.49
--- WebDBWriter.java    19 Mar 2004 17:27:59 -0000      1.50
***************
*** 767,770 ****
--- 767,781 ----
                      // 1.  Tell the future edits-list about this new item
                      pagesByMD5Edits++;
+                     
+                     //
+                     // If this is an ADD_PAGE_IFN_PRESENT, then
+                     // we may also have a Link we have to take care of!
+                     //
+                     if (curInstruction == ADD_PAGE_IFN_PRESENT) {
+                         Link editLink = editItem.getLink();
+                         if (editLink != null) {
+                             addLink(editLink);
+                         }
+                     }
                      piwriter.appendInstructionInfo(futureEdits, editItem.getPage(), 
ADD_PAGE, NullWritable.get());
  



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nutch-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-cvs

Reply via email to