Skip to content

Commit

Permalink
Remove doubled promote
Browse files Browse the repository at this point in the history
  • Loading branch information
yngvar-antonsson committed Dec 26, 2024
1 parent 19de596 commit 7644074
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cartridge/failover.lua
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ local function synchro_promote()
and box.ctl.promote ~= nil
then
local ok, err = pcall(box.ctl.promote)
fiber.testcancel()
if ok ~= true then
log.error('Failed to promote: %s', err or 'unknown')
return err
Expand All @@ -451,7 +450,6 @@ local function synchro_demote()
and box_info.synchro.queue.owner == box_info.id
and box.ctl.demote ~= nil then
local ok, err = pcall(box.ctl.demote)
fiber.testcancel()
if ok ~= true then
log.error('Failed to demote: %s', err or 'unknown')
return err
Expand Down

0 comments on commit 7644074

Please sign in to comment.