mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
swarm/storage/localstore: update writeGCSize comment
This commit is contained in:
parent
7fa1ba9b05
commit
ebecd055eb
1 changed files with 2 additions and 2 deletions
|
|
@ -199,8 +199,8 @@ func (db *DB) writeGCSizeWorker() {
|
||||||
|
|
||||||
// writeGCSize stores the number of items in gcIndex.
|
// writeGCSize stores the number of items in gcIndex.
|
||||||
// It removes all hashes from gcUncountedHashesIndex
|
// It removes all hashes from gcUncountedHashesIndex
|
||||||
// not to include them on the next database initialization
|
// not to include them on the next DB initialization
|
||||||
// when gcSize is counted.
|
// (New function) when gcSize is counted.
|
||||||
func (db *DB) writeGCSize(gcSize int64) (err error) {
|
func (db *DB) writeGCSize(gcSize int64) (err error) {
|
||||||
const maxBatchSize = 1000
|
const maxBatchSize = 1000
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue