소스 검색

mvcc/backend: fix to use the backend create by snapshot instead of origin one.

caoming 7 년 전
부모
커밋
bf49b9a145
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      mvcc/backend/backend_test.go

+ 1 - 1
mvcc/backend/backend_test.go

@@ -74,7 +74,7 @@ func TestBackendSnapshot(t *testing.T) {
 	nb := New(bcfg)
 	defer cleanup(nb, f.Name())
 
-	newTx := b.BatchTx()
+	newTx := nb.BatchTx()
 	newTx.Lock()
 	ks, _ := newTx.UnsafeRange([]byte("test"), []byte("foo"), []byte("goo"), 0)
 	if len(ks) != 1 {