@@ -3731,7 +3731,7 @@ public void storeShallow(CHKBlock block, boolean canWriteClientCache, boolean ca
3731
3731
* Store a datum.
3732
3732
* @param block
3733
3733
* a KeyBlock
3734
- * @param deep If true, insert to the store as well as the cache. Do not set
3734
+ * @param deep If true, insert to the store rather than the cache. Do not set
3735
3735
* this to true unless the store results from an insert, and this node is the
3736
3736
* closest node to the target; see the description of chkDatastore.
3737
3737
*/
@@ -3761,9 +3761,10 @@ private void store(CHKBlock block, boolean deep, boolean canWriteClientCache, bo
3761
3761
chkDatastore .put (block , !canWriteDatastore );
3762
3762
nodeStats .avgStoreCHKLocation .report (loc );
3763
3763
3764
+ } else {
3765
+ chkDatacache .put (block , !canWriteDatastore );
3766
+ nodeStats .avgCacheCHKLocation .report (loc );
3764
3767
}
3765
- chkDatacache .put (block , !canWriteDatastore );
3766
- nodeStats .avgCacheCHKLocation .report (loc );
3767
3768
}
3768
3769
if (canWriteDatastore || forULPR || useSlashdotCache )
3769
3770
failureTable .onFound (block );
@@ -3809,9 +3810,10 @@ public void store(SSKBlock block, boolean deep, boolean overwrite, boolean canWr
3809
3810
if (deep ) {
3810
3811
sskDatastore .put (block , overwrite , !canWriteDatastore );
3811
3812
nodeStats .avgStoreSSKLocation .report (loc );
3813
+ } else {
3814
+ sskDatacache .put (block , overwrite , !canWriteDatastore );
3815
+ nodeStats .avgCacheSSKLocation .report (loc );
3812
3816
}
3813
- sskDatacache .put (block , overwrite , !canWriteDatastore );
3814
- nodeStats .avgCacheSSKLocation .report (loc );
3815
3817
}
3816
3818
if (canWriteDatastore || forULPR || useSlashdotCache )
3817
3819
failureTable .onFound (block );
0 commit comments