File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ require (
6
6
github.com/cosmos/gorocksdb v1.2.0
7
7
github.com/dgraph-io/badger/v2 v2.2007.2
8
8
github.com/gogo/protobuf v1.3.2
9
+ github.com/golang/protobuf v1.4.3 // indirect
9
10
github.com/google/btree v1.0.0
10
11
github.com/jmhodges/levigo v1.0.0
11
12
github.com/stretchr/testify v1.7.0
@@ -21,7 +22,6 @@ require (
21
22
github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de // indirect
22
23
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 // indirect
23
24
github.com/dustin/go-humanize v1.0.0 // indirect
24
- github.com/golang/protobuf v1.4.3 // indirect
25
25
github.com/golang/snappy v0.0.1 // indirect
26
26
github.com/pkg/errors v0.8.1 // indirect
27
27
github.com/pmezard/go-difflib v1.0.0 // indirect
Original file line number Diff line number Diff line change @@ -166,6 +166,10 @@ func (db *GoLevelDB) Stats() map[string]string {
166
166
return stats
167
167
}
168
168
169
+ func (db * GoLevelDB ) ForceCompact (start , limit []byte ) error {
170
+ return db .db .CompactRange (util.Range {Start : start , Limit : limit })
171
+ }
172
+
169
173
// NewBatch implements DB.
170
174
func (db * GoLevelDB ) NewBatch () Batch {
171
175
return newGoLevelDBBatch (db )
You can’t perform that action at this time.
0 commit comments