!2712 修改issue: pg_resetxlog工具设置xlog文件名不正确

Merge pull request !2712 from zhaobingyu/zby_resetxlog
This commit is contained in:
opengauss-bot
2022-12-30 09:14:31 +00:00
committed by Gitee

View File

@ -425,13 +425,13 @@ static void DssInit(void)
dss.socketpath = NULL;
dss.vgname = NULL;
dss.primaryInstId = INVALID_INSTANCEID;
XLogSegmentSize = DSS_XLOG_SEG_SIZE;
}
static void SetGlobalDssParam(void)
{
errno_t rc = strcpy_s(g_datadir.dss_data, strlen(dss.vgname) + 1, dss.vgname);
securec_check_c(rc, "\0", "\0");
XLogSegmentSize = DSS_XLOG_SEG_SIZE;
}
/*