diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index a2345e3..981c2f4 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -9432,6 +9432,8 @@ void StartupXLOG(void) if (he3_point_in_time_recovery && he3recoveryStopsAfter(xlogreader)) { pushTikv(0,hashMapSize(),true); + reachedRecoveryTarget = true; + WalTaskImmediateFree(); break; } /* Else, try to fetch the next WAL record */