!1712 【bugfix】修复hot_standby_feedback关闭后,xmin不推进的问题

Merge pull request !1712 from li_jianqiu/2.0.0
This commit is contained in:
opengauss-bot 2022-04-29 12:38:32 +00:00 committed by Gitee
commit 4c803975b9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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.