diff --git a/index/store/boltdb/store.go b/index/store/boltdb/store.go index f70d5f9f..163a0566 100644 --- a/index/store/boltdb/store.go +++ b/index/store/boltdb/store.go @@ -28,8 +28,8 @@ import ( ) const ( - Name = "boltdb" - defaultBatchSize = 100 + Name = "boltdb" + defaultCompactBatchSize = 100 ) type Store struct { @@ -143,7 +143,7 @@ func (bs *Store) CompactWithBatchSize(batchSize int) error { // Compact calls CompactWithBatchSize with a default batch size of 100. This is a workaround // for github issue #374. func (bs *Store) Compact() error { - return bs.CompactWithBatchSize(defaultBatchSize) + return bs.CompactWithBatchSize(defaultCompactBatchSize) } func init() { diff --git a/index/store/goleveldb/store.go b/index/store/goleveldb/store.go index 41753c33..4ca2e9e6 100644 --- a/index/store/goleveldb/store.go +++ b/index/store/goleveldb/store.go @@ -21,8 +21,8 @@ import ( ) const ( - Name = "goleveldb" - defaultBatchSize = 250 + Name = "goleveldb" + defaultCompactBatchSize = 250 ) type Store struct { @@ -132,7 +132,7 @@ func (ldbs *Store) CompactWithBatchSize(batchSize int) error { // Compact compacts the underlying goleveldb store. The current implementation includes a workaround // for github issue #374 (see CompactWithBatchSize). func (ldbs *Store) Compact() error { - return ldbs.CompactWithBatchSize(defaultBatchSize) + return ldbs.CompactWithBatchSize(defaultCompactBatchSize) } func init() {