提交 a9cd61e0 编写于 作者: A Ashwin Agrawal

Replace ModifyPostgresqlConfSetting with ModifyConfSetting.

上级 78aed203
......@@ -164,31 +164,31 @@ class ConfExpSegCmd(Command):
raise
logger.info("Updating %s/postgresql.conf" % self.datadir)
modifyPostgresqlConfCmd = ModifyPostgresqlConfSetting('Updating %s/postgresql.conf' % self.datadir,
self.datadir + '/postgresql.conf',
'port', self.port, optType='number')
modifyConfCmd = ModifyConfSetting('Updating %s/postgresql.conf' % self.datadir,
self.datadir + '/postgresql.conf',
'port', self.port, optType='number')
try:
modifyPostgresqlConfCmd.run(validateAfter=True)
modifyConfCmd.run(validateAfter=True)
except:
self.set_results(modifyPostgresqlConfCmd.get_results())
self.set_results(modifyConfCmd.get_results())
raise
modifyPostgresqlConfCmd = ModifyPostgresqlConfSetting('Updating %s/postgresql.conf' % self.datadir,
modifyConfCmd = ModifyConfSetting('Updating %s/postgresql.conf' % self.datadir,
self.datadir + '/postgresql.conf',
'gp_contentid', self.contentid, optType='number')
try:
modifyPostgresqlConfCmd.run(validateAfter=True)
modifyConfCmd.run(validateAfter=True)
except:
self.set_results(modifyPostgresqlConfCmd.get_results())
self.set_results(modifyConfCmd.get_results())
raise
modifyPostgresqlConfCmd = ModifyPostgresqlConfSetting('Updating %s/internal.auto.conf' % self.datadir,
self.datadir + '/internal.auto.conf',
'gp_dbid', self.dbid, optType='number')
modifyConfCmd = ModifyConfSetting('Updating %s/internal.auto.conf' % self.datadir,
self.datadir + '/internal.auto.conf',
'gp_dbid', self.dbid, optType='number')
try:
modifyPostgresqlConfCmd.run(validateAfter=True)
modifyConfCmd.run(validateAfter=True)
except:
self.set_results(modifyPostgresqlConfCmd.get_results())
self.set_results(modifyConfCmd.get_results())
raise
# We might need to stop the segment if the last setup failed past this point
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册