From a3d5e6e429048f7aef90f60b450e82da096e114e Mon Sep 17 00:00:00 2001 From: "v.mogilin" Date: Tue, 27 Feb 2024 23:52:46 -0800 Subject: [PATCH] Allow disable fencing with etcd.fencing_enabled: false --- config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.lua b/config.lua index 3541f8f..dcfa6b3 100644 --- a/config.lua +++ b/config.lua @@ -1129,7 +1129,7 @@ local M local msp = config.get('sys.master_selection_policy') if type(cfg.etcd) == 'table' - and config.get('etcd.fencing_enabled') + and config.get('etcd.fencing_enabled') == true and (msp == 'etcd.cluster.master' or msp == 'etcd.cluster.vshard') and type(cfg.cluster) == 'string' and cfg.cluster ~= '' and config.get('etcd.reduce_listing_quorum') ~= true