mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
Fix compilation with WAL_DEBUG.
Broke with5c279a6d35
. But looks like it had been half-broken since70e81861fa
, 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:
@@ -1634,8 +1634,8 @@ PerformWalRecovery(void)
|
|||||||
|
|
||||||
#ifdef WAL_DEBUG
|
#ifdef WAL_DEBUG
|
||||||
if (XLOG_DEBUG ||
|
if (XLOG_DEBUG ||
|
||||||
(rmid == RM_XACT_ID && trace_recovery_messages <= DEBUG2) ||
|
(record->xl_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 <= DEBUG3))
|
||||||
{
|
{
|
||||||
StringInfoData buf;
|
StringInfoData buf;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user