资源池化存储复制备集群没有remove xlogfile的需要
This commit is contained in:
Lamaric
2024-08-01 16:20:55 +08:00
committed by chenbd
parent b3ef96ed98
commit e2c3d0f7b3

View File

@ -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;