slave convert to master no need pushtikv

Code Source From: Self Code
Description:  【Optional】
Jira:  #【Optional】
市场项目编号(名称):【Optional】
This commit is contained in:
shenzhengntu 2023-06-14 13:57:40 +08:00
parent 84e6416972
commit 3f5feb7c81

View File

@ -5913,7 +5913,7 @@ xact_redo_commit(xl_xact_parsed_commit *parsed,
*/
XLogFlush(lsn);
if (push_standby || !EnableHotStandby || *isPromoteIsTriggered)
if (push_standby || !EnableHotStandby)
{
pushTikv(0, hashMapSize(), true);
} else {
@ -6031,7 +6031,7 @@ xact_redo_abort(xl_xact_parsed_abort *parsed, TransactionId xid,
*/
XLogFlush(lsn);
if (push_standby || !EnableHotStandby || *isPromoteIsTriggered)
if (push_standby || !EnableHotStandby)
{
pushTikv(0, hashMapSize(), true);
} else {