适配开启数据库参数uppercase_attribute_name
This commit is contained in:
parent
a8041337c6
commit
2b2e46abc2
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user