Author: toad
Date: 2008-06-26 23:27:56 +0000 (Thu, 26 Jun 2008)
New Revision: 20802

Modified:
   branches/db4o/freenet/src/freenet/support/RandomGrabArray.java
Log:
Similar: using container without checking persistent first

Modified: branches/db4o/freenet/src/freenet/support/RandomGrabArray.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/RandomGrabArray.java      
2008-06-26 23:26:46 UTC (rev 20801)
+++ branches/db4o/freenet/src/freenet/support/RandomGrabArray.java      
2008-06-26 23:27:56 UTC (rev 20802)
@@ -204,7 +204,8 @@
                                }
                                if(ret != null && excluding.exclude(ret, 
container, context)) {
                                        excluded++;
-                                       container.deactivate(ret, 1);
+                                       if(persistent)
+                                               container.deactivate(ret, 1);
                                        if(excluded > MAX_EXCLUDED) {
                                                Logger.error(this, "Remove 
random returning null because "+excluded+" excluded items, length = "+index, 
new Exception("error"));
                                                if(persistent && changedMe)


Reply via email to