diff --git a/mvcc/kvstore_test.go b/mvcc/kvstore_test.go index f8adae85991..d61f392be30 100644 --- a/mvcc/kvstore_test.go +++ b/mvcc/kvstore_test.go @@ -718,7 +718,7 @@ func TestConcurrentReadTxAndWrite(t *testing.T) { numOfWrites = 100 maxNumOfPutsPerWrite = 10 committedKVs kvs // committedKVs records the key-value pairs written by the finished Write Txns - mu sync.Mutex // mu protectes committedKVs + mu sync.Mutex // mu protects committedKVs ) b, tmpPath := backend.NewDefaultTmpBackend() s := NewStore(zap.NewExample(), b, &lease.FakeLessor{}, nil, StoreConfig{})