diff options
author | Andres Freund <andres@anarazel.de> | 2022-04-06 23:24:00 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2022-04-06 23:26:59 -0700 |
commit | 3536b851adb275e2f49a80030111e84abc0736ba (patch) | |
tree | 46e118303e89dff38ea233c6fd8ea3e8e9867248 | |
parent | 5c279a6d350205cc98f91fb8e1d3e4442a6b25d1 (diff) | |
download | postgresql-3536b851adb275e2f49a80030111e84abc0736ba.tar.gz postgresql-3536b851adb275e2f49a80030111e84abc0736ba.zip |
Fix compilation with WAL_DEBUG.
Broke with 5c279a6d350. But looks like it had been half-broken since
70e81861fad, because 'rmid' didn't refer to the current record's rmid anymore,
but to rmid from "Initialize resource managers" - a constant.
-rw-r--r-- | src/backend/access/transam/xlogrecovery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlogrecovery.c b/src/backend/access/transam/xlogrecovery.c index 55391921679..79d38a837c4 100644 --- a/src/backend/access/transam/xlogrecovery.c +++ b/src/backend/access/transam/xlogrecovery.c @@ -1634,8 +1634,8 @@ PerformWalRecovery(void) #ifdef WAL_DEBUG if (XLOG_DEBUG || - (rmid == RM_XACT_ID && trace_recovery_messages <= DEBUG2) || - (rmid != RM_XACT_ID && trace_recovery_messages <= DEBUG3)) + (record->xl_rmid == RM_XACT_ID && trace_recovery_messages <= DEBUG2) || + (record->xl_rmid != RM_XACT_ID && trace_recovery_messages <= DEBUG3)) { StringInfoData buf; |