Skip to content

Commit

Permalink
mvcc: reset keys gauge on restore
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Romano committed Aug 10, 2017
1 parent 0441345 commit 3286657
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mvcc/kvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ func (s *store) restore() error {
}

// index keys concurrently as they're loaded in from tx
keysGauge.Set(0)
rkvc, revc := restoreIntoIndex(s.kvindex)
for {
keys, vals := tx.UnsafeRange(keyBucketName, min, max, int64(restoreChunkKeys))
Expand Down

0 comments on commit 3286657

Please sign in to comment.