cherry pick a032fff from https://gitee.com/cbd123cbd/openGauss-server/pulls/5921
资源池化存储复制备集群没有remove xlogfile的需要
This commit is contained in:
@ -6876,6 +6876,10 @@ static XLogSegNo GetOldestXLOGSegNo(const char *workingPath)
|
||||
(void)closedir(xlogDir);
|
||||
|
||||
if (sscanf_s(oldestXLogFileName, "%08X%08X%08X", &tli, &xlogReadLogid, &xlogReadLogSeg) != 3) {
|
||||
if (SS_DORADO_STANDBY_CLUSTER) {
|
||||
/* ss standby cluster does not actually need to remove xlog file. */
|
||||
return (XLogSegNo)0;
|
||||
}
|
||||
ereport(ERROR, (errcode_for_file_access(), errmsg("failed to translate name to xlog in GetOldestXLOGSegNo.")));
|
||||
}
|
||||
segno = (uint64)xlogReadLogid * XLogSegmentsPerXLogId + xlogReadLogSeg - 1;
|
||||
|
||||
Reference in New Issue
Block a user