diff --git a/mvcc/kvstore.go b/mvcc/kvstore.go index e7e7c42ec..4ff56a298 100644 --- a/mvcc/kvstore.go +++ b/mvcc/kvstore.go @@ -323,10 +323,9 @@ func (s *store) Compact(rev int64) (<-chan struct{}, error) { } func (s *store) Hash() (uint32, int64, error) { - s.b.ForceCommit() - s.mu.Lock() defer s.mu.Unlock() + s.b.ForceCommit() // ignore hash consistent index field for now. // consistent index might be changed due to v2 internal sync, which