From 759fdeb65beadb4355f5c9fc11a692bf90b3dce6 Mon Sep 17 00:00:00 2001 From: lash Date: Mon, 1 Oct 2018 10:44:23 +0200 Subject: [PATCH] swarm/storage: Revert access count change --- swarm/storage/ldbstore.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/swarm/storage/ldbstore.go b/swarm/storage/ldbstore.go index 94c7428512..2bf121dc64 100644 --- a/swarm/storage/ldbstore.go +++ b/swarm/storage/ldbstore.go @@ -719,9 +719,8 @@ func (s *LDBStore) tryAccessIdx(ikey []byte, index *dpaDBIndex) bool { } decodeIndex(idata, index) s.batch.Put(keyAccessCnt, U64ToBytes(s.accessCnt)) - // presumably, we only want to increase the access count of the chunk in question, and not the offset of any future ones? - //s.accessCnt++ - index.Access = s.accessCnt + 1 + s.accessCnt++ + index.Access = s.accessCnt idata = encodeIndex(index) s.batch.Put(ikey, idata) select {