提交 b6c77b2f 编写于 作者: S Shaoqi Bai 提交者: BaiShaoqi

If the standby is down, and the synchronous_standby_names is *, the cluster will not start

Co-authored-by: NNing Yu <nyu@pivotal.io>
上级 0e461e16
......@@ -277,6 +277,20 @@ def delete_standby(options):
# Disable Ctrl-C
signal.signal(signal.SIGINT,signal.SIG_IGN)
# If the standby is down, and the synchronous_standby_names is *, the cluster will not start
# set synchronous_standby_names to ''
cmd = gp.GpAddConfigScript('master',
array.master.datadir,
'synchronous_standby_names',
value="''",
removeonly=False,
ctxt=gp.REMOTE,
remoteHost=array.master.hostname,
autoconf=True)
cmd.run(validateAfter=True)
# make it effective
pg.ReloadDbConf.local('pg_ctl reload', array.master)
try:
remove_standby_from_catalog(options, array)
except Exception, ex:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册