Skip to content

Commit 84619cc

Browse files
committed
Declare Lua variables as local to make interpreter happy
1 parent 1b76c83 commit 84619cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/tarantool/jepsen.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ box.schema.func.create('_CAS',
4646
body = [[function(id, old_value, new_value, table)
4747
local rc = false
4848
box.begin()
49-
tuple = box.space[table]:get{id}
49+
local tuple = box.space[table]:get{id}
5050
if tuple then
5151
if tuple[2] == old_value then
5252
box.space[table]:update({id}, {{'=', 2, new_value}})
@@ -88,7 +88,7 @@ box.schema.func.create('_READ',
8888
returns = 'integer',
8989
body = [[function (id, table)
9090
box.begin()
91-
tuple = box.space[table]:get{id}
91+
local tuple = box.space[table]:get{id}
9292
if tuple then
9393
return tuple[2]
9494
end

0 commit comments

Comments
 (0)