mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
swarm/storage: Revert access count change
This commit is contained in:
parent
9f7b0f5813
commit
759fdeb65b
1 changed files with 2 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue