Author: toad
Date: 2009-02-25 18:32:48 +0000 (Wed, 25 Feb 2009)
New Revision: 25819

Modified:
   branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java
Log:
No need to call if we are an insert scheduler


Modified: 
branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java  
2009-02-25 18:32:07 UTC (rev 25818)
+++ branches/db4o/freenet/src/freenet/client/async/ClientRequestScheduler.java  
2009-02-25 18:32:48 UTC (rev 25819)
@@ -672,8 +672,10 @@
        private void fillRequestStarterQueue(ObjectContainer container, 
ClientContext context, SendableRequest[] mightBeActive) {
                if(logMINOR) Logger.minor(this, "Filling request queue... 
(SSK="+isSSKScheduler+" insert="+isInsertScheduler);
                long noLaterThan = Long.MAX_VALUE;
-               noLaterThan = 
moveKeysFromCooldownQueue(persistentCooldownQueue, true, container);
-               noLaterThan = Math.min(noLaterThan, 
moveKeysFromCooldownQueue(transientCooldownQueue, false, container));
+               if(!isInsertScheduler) {
+                       noLaterThan = 
moveKeysFromCooldownQueue(persistentCooldownQueue, true, container);
+                       noLaterThan = Math.min(noLaterThan, 
moveKeysFromCooldownQueue(transientCooldownQueue, false, container));
+               }
                // If anything has been re-added, the request starter will have 
been woken up.
                short fuzz = -1;
                if(PRIORITY_SOFT.equals(choosenPriorityScheduler))

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

Reply via email to