Merge pull request #12315 from BinacsLee/binacs-mvcc-fix-typo

mvcc: fix typo
This commit is contained in:
Jingyi Hu 2020-09-18 09:17:59 -07:00 committed by GitHub
commit 6d5b77b91b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -718,7 +718,7 @@ func TestConcurrentReadTxAndWrite(t *testing.T) {
numOfWrites = 100 numOfWrites = 100
maxNumOfPutsPerWrite = 10 maxNumOfPutsPerWrite = 10
committedKVs kvs // committedKVs records the key-value pairs written by the finished Write Txns 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() b, tmpPath := backend.NewDefaultTmpBackend()
s := NewStore(zap.NewExample(), b, &lease.FakeLessor{}, nil, StoreConfig{}) s := NewStore(zap.NewExample(), b, &lease.FakeLessor{}, nil, StoreConfig{})