diff --git a/gpMgmt/bin/gppylib/commands/gp.py b/gpMgmt/bin/gppylib/commands/gp.py index a7ac101745a4418348bd436a7111d618daa07bbf..5224f17b5b44e89bf3061a160e0a72186e0c7db0 100644 --- a/gpMgmt/bin/gppylib/commands/gp.py +++ b/gpMgmt/bin/gppylib/commands/gp.py @@ -372,6 +372,7 @@ class SegmentStart(Command): content = gpdb.getSegmentContentId() port = gpdb.getSegmentPort() datadir = gpdb.getSegmentDataDirectory() + role = gpdb.getSegmentRole() # build backend options b = PgCtlBackendOptions(port, dbid, numContentsInCluster) @@ -379,6 +380,10 @@ class SegmentStart(Command): b.set_utility(utilityMode) b.set_special(specialMode) + # mirror will be in recovery mode so pg_ctl -w flag won't work + if role == gparray.ROLE_MIRROR: + noWait = True + # build pg_ctl command c = PgCtlStartArgs(datadir, b, era, wrapper, wrapper_args, not noWait, timeout) self.cmdStr = str(c) + ' 2>&1'