适配开启数据库参数uppercase_attribute_name

This commit is contained in:
xue_meng_en
2023-05-22 10:58:34 +08:00
parent af9f5f313b
commit bd2ddd176c

View File

@ -288,7 +288,7 @@ General options:
isLocal = False
if host == self.localhostName:
isLocal = True
findPrimaryCmd = "source %s; gs_ctl query -D %s | grep 'local_role.*Primary' > /dev/null" % \
findPrimaryCmd = "source %s; gs_ctl query -D %s | grep -i 'local_role.*Primary' > /dev/null" % \
(self.envFile, self.nodesInfo[host]["dataPath"])
notPrimary, output = executeCmdOnHost(host, findPrimaryCmd, isLocal)
if notPrimary == 0: