Commit a1105c3d authored by Andres Freund's avatar Andres Freund

Fix copy & paste error in 4f1b890b.

Due to the bug delayed standbys would not delay when applying prepared
transactions.

Discussion: CAB7nPqT6BO1cCn+sAyDByBxA4EKZNAiPi2mFJ=ANeZmnmewRyg@mail.gmail.com

Michael Paquier via Coverity.
parent 372b9709
...@@ -5534,7 +5534,7 @@ recoveryApplyDelay(XLogReaderState *record) ...@@ -5534,7 +5534,7 @@ recoveryApplyDelay(XLogReaderState *record)
if (XLogRecGetRmid(record) != RM_XACT_ID) if (XLogRecGetRmid(record) != RM_XACT_ID)
return false; return false;
xact_info = XLogRecGetInfo(record) & XLOG_XACT_COMMIT; xact_info = XLogRecGetInfo(record) & XLOG_XACT_OPMASK;
if (xact_info != XLOG_XACT_COMMIT && if (xact_info != XLOG_XACT_COMMIT &&
xact_info != XLOG_XACT_COMMIT_PREPARED) xact_info != XLOG_XACT_COMMIT_PREPARED)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment