diff options
author | Jeff Davis <jdavis@postgresql.org> | 2022-04-07 00:27:07 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2022-04-07 00:39:30 -0700 |
commit | 9553b4115f1879f66935f42fff0b798ef91866d0 (patch) | |
tree | 12a7f2e31a7b9e2d003b5a50513bf2b82fdeec80 /src/backend/access/transam/xlogreader.c | |
parent | e349c95d3e91754c8c3afc0587d52d44a479c8d2 (diff) | |
download | postgresql-9553b4115f1879f66935f42fff0b798ef91866d0.tar.gz postgresql-9553b4115f1879f66935f42fff0b798ef91866d0.zip |
Fix warning introduced in 5c279a6d350.
Change two macros to be static inline functions instead to keep the
data type consistent. This avoids a "comparison is always true"
warning that was occurring with -Wtype-limits. In the process, change
the names to look less like macros.
Discussion: https://postgr.es/m/20220407063505.njnnrmbn4sxqfsts@alap3.anarazel.de
Diffstat (limited to 'src/backend/access/transam/xlogreader.c')
-rw-r--r-- | src/backend/access/transam/xlogreader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlogreader.c b/src/backend/access/transam/xlogreader.c index 161cf13fed2..e612aa933a5 100644 --- a/src/backend/access/transam/xlogreader.c +++ b/src/backend/access/transam/xlogreader.c @@ -1102,7 +1102,7 @@ ValidXLogRecordHeader(XLogReaderState *state, XLogRecPtr RecPtr, (uint32) SizeOfXLogRecord, record->xl_tot_len); return false; } - if (!RMID_IS_VALID(record->xl_rmid)) + if (!RmgrIdIsValid(record->xl_rmid)) { report_invalid_record(state, "invalid resource manager ID %u at %X/%X", |