diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 8c7a239160..5df79116f9 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -3630,7 +3630,7 @@ RemoveXlogFile(const char *segname, XLogRecPtr endptr) * Initialize info about where to try to recycle to. We allow recycling * segments up to XLOGfileslop segments beyond the current XLOG location. */ - XLByteToPrevSeg(endptr, endlogId, endlogSeg); + XLByteToSeg(endptr, endlogId, endlogSeg); max_advance = XLOGfileslop; snprintf(path, MAXPGPATH, XLOGDIR "/%s", segname);