mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm/storage/localstore: decrement size counter on ModeRemoval update
This commit is contained in:
parent
37205de1e1
commit
b1ded5a80b
1 changed files with 1 additions and 0 deletions
|
|
@ -174,6 +174,7 @@ func (db *DB) updateBatch(b *batch, mode Mode, item shed.IndexItem) (err error)
|
|||
db.retrievalIndex.DeleteInBatch(b.Batch, item)
|
||||
db.pullIndex.DeleteInBatch(b.Batch, item)
|
||||
db.gcIndex.DeleteInBatch(b.Batch, item)
|
||||
db.sizeCounter.DecInBatch(b.Batch)
|
||||
|
||||
default:
|
||||
return ErrInvalidMode
|
||||
|
|
|
|||
Loading…
Reference in a new issue