Author: toad
Date: 2008-07-16 22:21:58 +0000 (Wed, 16 Jul 2008)
New Revision: 21152

Modified:
   branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
Log:
Activation

Modified: 
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java 
2008-07-16 22:06:41 UTC (rev 21151)
+++ branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java 
2008-07-16 22:21:58 UTC (rev 21152)
@@ -988,10 +988,14 @@
                ClientCHKBlock cb;
                int retryCount = getBlockRetryCount(blockNum);
                SplitFileFetcherSubSegment seg = this.getSubSegment(retryCount, 
container, true);
+               if(persistent)
+                       container.activate(seg, 1);
                if(seg != null) {
                        seg.removeBlockNum(blockNum);
                        seg.possiblyRemoveFromParent(container);
                }
+               if(persistent)
+                       container.deactivate(seg, 1);
                try {
                        cb = new ClientCHKBlock((CHKBlock)block, ckey);
                } catch (CHKVerifyException e) {


Reply via email to