Browse Source

mvcc: reset keys gauge on restore

Fixes #8388
Anthony Romano 8 years ago
parent
commit
32866572bf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      mvcc/kvstore.go

+ 1 - 0
mvcc/kvstore.go

@@ -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))