Skip to content

Commit 532243b

Browse files
committed
fix overlapping space name by space object
As a result of this overlap, we will get an error during the formation of the message of the previous error.
1 parent d709208 commit 532243b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

queue/abstract.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,16 +436,16 @@ end
436436

437437
-- function takes tuples and recreates tube
438438
local function recreate_tube(tube_tuple)
439-
local name, id, space, tube_type, opts = tube_tuple:unpack()
439+
local name, id, space_name, tube_type, opts = tube_tuple:unpack()
440440

441441
local driver = queue.driver[tube_type]
442442
if driver == nil then
443443
error("Unknown tube type " .. tostring(tube_type))
444444
end
445445

446-
local space = box.space[space]
446+
local space = box.space[space_name]
447447
if space == nil then
448-
error(("Space '%s' doesn't exists"):format(space))
448+
error(("Space '%s' doesn't exists"):format(space_name))
449449
end
450450
return make_self(driver, space, name, tube_type, id, opts)
451451
end

0 commit comments

Comments
 (0)