xlog日志清空的逻辑优化

This commit is contained in:
ZigSmith
2021-03-12 17:12:10 +08:00
parent 6a3392fa94
commit 06090c1973

View File

@ -4847,6 +4847,10 @@ static void UpdateLastRemovedPtr(const char *filename)
*/
static void RemoveOldXlogFiles(XLogSegNo segno, XLogRecPtr endptr)
{
if (segno == 0) {
return;
}
DIR *xldir = NULL;
struct dirent *xlde = NULL;
char lastoff[MAXFNAMELEN];