From 7cef87006eac3d7e4d2d5ed475e9d198f7bfb890 Mon Sep 17 00:00:00 2001 From: victor_zhc Date: Mon, 31 Aug 2020 19:58:44 +0800 Subject: [PATCH] fix bug of PITR recovery in specify LSN --- src/gausskernel/storage/access/transam/xlog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gausskernel/storage/access/transam/xlog.cpp b/src/gausskernel/storage/access/transam/xlog.cpp index 9833a5a78..a5d9cd964 100755 --- a/src/gausskernel/storage/access/transam/xlog.cpp +++ b/src/gausskernel/storage/access/transam/xlog.cpp @@ -7470,7 +7470,7 @@ static bool recoveryStopsHere(XLogReaderState* record, bool* includeThis) // Ignore recoveryTargetInclusive because this is not a transaction record *includeThis = false; - } else { + } else if (t_thrd.xlog_cxt.recoveryTarget == RECOVERY_TARGET_TIME) { /* * There can be many transactions that share the same commit time, so * we stop after the last one, if we are inclusive, or stop at the