提交 b11743ce 编写于 作者: A Aleksey Kashin 提交者: Bhuvnesh Chaudhary

fix gprecoverseg -r when password authentification enabled for gpadmin

The parameters were incorrectly passed while gprecoverseg was invoked
causing gprecoverseg to fail.

Co-authored-by: Bhuvnesh Chaudhary<bchaudhary@vmware.com>
上级 ffa5911b
......@@ -14,12 +14,12 @@ class SegmentReconfigurer:
self.timeout = timeout
def _trigger_fts_probe(self, dburl):
conn = pg.connect(dburl.pgdb,
dburl.pghost,
dburl.pgport,
None,
dburl.pguser,
dburl.pgpass,
conn = pg.connect(dbname=dburl.pgdb,
host=dburl.pghost,
port=dburl.pgport,
opt=None,
user=dburl.pguser,
passwd=dburl.pgpass,
)
conn.query(FTS_PROBE_QUERY)
conn.close()
......
......@@ -46,7 +46,7 @@ class SegmentReconfiguerTestCase(GpTestCase):
worker_pool=self.worker_pool, timeout=self.timeout)
reconfigurer.reconfigure()
pg.connect.assert_has_calls([
call(self.db, self.host, self.port, None, self.user, self.passwd),
call(dbname=self.db, host=self.host, port=self.port, opt=None, user=self.user, passwd=self.passwd),
call().query(FTS_PROBE_QUERY),
call().close(),
]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册