Fix compilation with WAL_DEBUG.

Broke with 5c279a6d35. But looks like it had been half-broken since
70e81861fa, because 'rmid' didn't refer to the current record's rmid anymore,
but to rmid from "Initialize resource managers" - a constant.
This commit is contained in:
Andres Freund 2022-04-06 23:24:00 -07:00
parent 5c279a6d35
commit 3536b851ad
1 changed files with 2 additions and 2 deletions

View File

@ -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;