diff options
Diffstat (limited to 'src/backend/replication/walsender.c')
-rw-r--r-- | src/backend/replication/walsender.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index c972a1ab985..e73982a6fdc 100644 --- a/src/backend/replication/walsender.c +++ b/src/backend/replication/walsender.c @@ -656,9 +656,12 @@ ProcessStandbyHSFeedbackMessage(void) reply.xmin, reply.epoch); - /* Ignore invalid xmin (can't actually happen with current walreceiver) */ + /* Unset WalSender's xmin if the feedback message value is invalid */ if (!TransactionIdIsNormal(reply.xmin)) + { + MyPgXact->xmin = InvalidTransactionId; return; + } /* * Check that the provided xmin/epoch are sane, that is, not in the future |