Skip to content

Commit

Permalink
Fix check all_rw on failover raft mode (#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-enk committed Aug 21, 2023
1 parent 5e64f31 commit a9f9704
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cartridge/failover.lua
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ local function cfg(clusterwide_config, opts)
end

if topology_cfg.replicasets[vars.replicaset_uuid].all_rw then
return ApplyConfigError:new("Raft failover can't be enabled with ALL_RW replicasets")
return nil, ApplyConfigError:new("Raft failover can't be enabled with ALL_RW replicasets")
end
vars.fencing_enabled = false
vars.consistency_needed = false
Expand Down

0 comments on commit a9f9704

Please sign in to comment.