Skip to content

Commit

Permalink
mvcc: reset keys gauge on restore
Browse files Browse the repository at this point in the history
Fixes #8388
  • Loading branch information
Anthony Romano authored and gyuho committed Aug 10, 2017
1 parent f81b72f commit e7bf547
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 @@ -272,6 +272,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 e7bf547

Please sign in to comment.