Skip to content
Snippets Groups Projects
Commit 96498131 authored by Dmitry Simonenko's avatar Dmitry Simonenko
Browse files

sophia: fix case for first read in a transaction context

parent 366c96a0
No related branches found
No related tags found
No related merge requests found
...@@ -78,3 +78,12 @@ for key = 1, 10 do assert(#b:select({key}) == 0) end ...@@ -78,3 +78,12 @@ for key = 1, 10 do assert(#b:select({key}) == 0) end
t t
a:drop() a:drop()
b: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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment