Skip to content

Commit

Permalink
add metrics and fix iter release
Browse files Browse the repository at this point in the history
  • Loading branch information
leoppro committed Aug 19, 2019
1 parent 5f2ae90 commit 3af2f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pump/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,6 @@ func (a *Append) doGCTS(ts int64) {
iter := a.metadata.NewIterator(irange, nil)

for {
deleteBatch := 0

nStr, err := a.metadata.GetProperty("leveldb.num-files-at-level0")
if err != nil {
Expand All @@ -687,6 +686,7 @@ func (a *Append) doGCTS(ts int64) {
continue
}

deleteBatch := 0
var lastKey []byte

for iter.Next() && deleteBatch < 100 {
Expand Down

0 comments on commit 3af2f9c

Please sign in to comment.