Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/trivuele-stop-storing-blocks-twi…
Browse files Browse the repository at this point in the history
…ce' into next
  • Loading branch information
ArneBab committed Jun 18, 2022
2 parents a65b766 + b87fe7e commit e6877ef
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/freenet/node/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -3731,7 +3731,7 @@ public void storeShallow(CHKBlock block, boolean canWriteClientCache, boolean ca
* Store a datum.
* @param block
* a KeyBlock
* @param deep If true, insert to the store as well as the cache. Do not set
* @param deep If true, insert to the store rather than the cache. Do not set
* this to true unless the store results from an insert, and this node is the
* closest node to the target; see the description of chkDatastore.
*/
Expand Down Expand Up @@ -3761,9 +3761,10 @@ private void store(CHKBlock block, boolean deep, boolean canWriteClientCache, bo
chkDatastore.put(block, !canWriteDatastore);
nodeStats.avgStoreCHKLocation.report(loc);

} else {
chkDatacache.put(block, !canWriteDatastore);
nodeStats.avgCacheCHKLocation.report(loc);
}
chkDatacache.put(block, !canWriteDatastore);
nodeStats.avgCacheCHKLocation.report(loc);
}
if (canWriteDatastore || forULPR || useSlashdotCache)
failureTable.onFound(block);
Expand Down Expand Up @@ -3809,9 +3810,10 @@ public void store(SSKBlock block, boolean deep, boolean overwrite, boolean canWr
if(deep) {
sskDatastore.put(block, overwrite, !canWriteDatastore);
nodeStats.avgStoreSSKLocation.report(loc);
} else {
sskDatacache.put(block, overwrite, !canWriteDatastore);
nodeStats.avgCacheSSKLocation.report(loc);
}
sskDatacache.put(block, overwrite, !canWriteDatastore);
nodeStats.avgCacheSSKLocation.report(loc);
}
if(canWriteDatastore || forULPR || useSlashdotCache)
failureTable.onFound(block);
Expand Down

0 comments on commit e6877ef

Please sign in to comment.