Author: j16sdiz
Date: 2008-12-18 05:36:56 +0000 (Thu, 18 Dec 2008)
New Revision: 24511

Modified:
   trunk/plugins/XMLSpider/XMLSpider.java
Log:
commit less often, it's slow

Modified: trunk/plugins/XMLSpider/XMLSpider.java
===================================================================
--- trunk/plugins/XMLSpider/XMLSpider.java      2008-12-18 05:31:46 UTC (rev 
24510)
+++ trunk/plugins/XMLSpider/XMLSpider.java      2008-12-18 05:36:56 UTC (rev 
24511)
@@ -340,7 +340,6 @@
                                onFailure(e, g, ((MyClientCallback) 
g.getClientCallback()).page);
                        }
                }
-               db.commit();
        }
 
        private class MyClientCallback implements ClientCallback {
@@ -1076,6 +1075,7 @@
        public void terminate(){
                synchronized (this) {
                        stopped = true;
+                       
                        for (Map.Entry<Page, ClientGetter> me : 
runningFetch.entrySet()) {
                                me.getValue().cancel();
                        }
@@ -1451,7 +1451,6 @@
                        if (writingIndex || stopped)
                                return;
 
-                       db.commit();
                        writingIndex = true;
                }
 

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to