Skip to content

Commit

Permalink
Fix processing tasks with zero length box.cfg.replication
Browse files Browse the repository at this point in the history
Closes #95
  • Loading branch information
oleg-jukovec committed May 31, 2022
1 parent 9193cab commit 63274bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion expirationd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ local function worker_loop(task)
fiber.name(string.format("worker of %q", task.name), { truncate = true })

while true do
if (box.cfg.replication_source == nil and box.cfg.replication == nil) or task.force then
local replication = box.cfg.replication_source or box.cfg.replication
if replication == nil or #replication == 0 or task.force then
task.on_full_scan_start(task)
local state, err = pcall(task.do_worker_iteration, task)
-- Following functions are on_full_scan*,
Expand Down

0 comments on commit 63274bb

Please # to comment.