!124 适配开启数据库参数uppercase_attribute_name

Merge pull request !124 from 薛蒙恩/uppercase
This commit is contained in:
opengauss-bot 2023-05-26 03:31:47 +00:00 committed by Gitee
commit 64ae695eb4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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: