From 96498131c0571a329419efe2e61a5a88ed4dd1b8 Mon Sep 17 00:00:00 2001 From: Dmitry Simonenko <pmwkaa@gmail.com> Date: Thu, 3 Sep 2015 18:17:04 +0300 Subject: [PATCH] sophia: fix case for first read in a transaction context --- test/sophia/transaction.test.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/sophia/transaction.test.lua b/test/sophia/transaction.test.lua index 7d894d612b..744a4f29c1 100644 --- a/test/sophia/transaction.test.lua +++ b/test/sophia/transaction.test.lua @@ -78,3 +78,12 @@ for key = 1, 10 do assert(#b:select({key}) == 0) end t a:drop() b:drop() + + +-- ensure findByKey works in empty transaction context +space = box.schema.space.create('test', { engine = 'sophia' }) +index = space:create_index('primary', { type = 'tree', parts = {1, 'num'} }) +box.begin() +space:get({0}) +box.rollback() +space:drop() -- GitLab