forked from openGauss-Ecosystem/openGauss-server
!3048 修复gs_basebackup用默认xlog传输方式 -X 参数提示密码错误
Merge pull request !3048 from 仲夏十三/mas9
This commit is contained in:
commit
cee4f486b3
|
@ -1154,8 +1154,6 @@ static void BaseBackup(void)
|
|||
/* Error message already written in GetConnection() */
|
||||
exit(1);
|
||||
|
||||
ClearAndFreePasswd();
|
||||
|
||||
/*
|
||||
* Run IDENTIFY_SYSTEM so we can get the timeline
|
||||
*/
|
||||
|
@ -1335,6 +1333,7 @@ static void BaseBackup(void)
|
|||
StartLogStreamer((const char *)xlogstart, timeline, sysidentifier);
|
||||
}
|
||||
|
||||
ClearAndFreePasswd();
|
||||
/* free sysidentifier after use */
|
||||
PQfreemem(sysidentifier);
|
||||
sysidentifier = NULL;
|
||||
|
|
Loading…
Reference in New Issue