修复hot_standby_feedback关闭后,xmin不推进的问题

This commit is contained in:
li_jianqiu 2022-04-29 19:23:44 +08:00
parent 07ad2fc0b2
commit d2e069125e
1 changed files with 4 additions and 1 deletions

View File

@ -1598,7 +1598,10 @@ static void XLogWalRcvSendHSFeedback(void)
/* Get updated RecentGlobalXmin */
GetSnapshotData(u_sess->utils_cxt.CurrentSnapshotData, true, true);
#endif
xmin = GetOldestXmin(NULL);
if (u_sess->attr.attr_storage.hot_standby_feedback)
xmin = GetOldestXmin(NULL);
else
xmin = InvalidTransactionId;
/*
* Always send feedback message.