swarm/storage: fix access count on dbstore after cache hit (#17978)
Access count was not incremented when chunk was retrieved
from cache. So the garbage collector might have deleted the most
frequently accessed chunk from disk.
Co-authored-by:
Ferenc Szabo <ferenc.szabo@ethereum.org>
Showing
- swarm/storage/ldbstore.go 32 additions, 16 deletionsswarm/storage/ldbstore.go
- swarm/storage/ldbstore_test.go 40 additions, 1 deletionswarm/storage/ldbstore_test.go
- swarm/storage/localstore.go 1 addition, 0 deletionsswarm/storage/localstore.go
- swarm/storage/localstore_test.go 65 additions, 0 deletionsswarm/storage/localstore_test.go
Loading
Please register or sign in to comment