From bf49b9a145e2b0f8fbf1ceaa3c4dbc5d091619eb Mon Sep 17 00:00:00 2001 From: caoming Date: Fri, 12 Oct 2018 15:39:39 +0800 Subject: [PATCH] mvcc/backend: fix to use the backend create by snapshot instead of origin one. --- mvcc/backend/backend_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mvcc/backend/backend_test.go b/mvcc/backend/backend_test.go index 616479aad253..69bd21423687 100644 --- a/mvcc/backend/backend_test.go +++ b/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 {