xlog日志清空的逻辑优化
This commit is contained in:
@ -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];
|
||||
|
||||
Reference in New Issue
Block a user