1
0
mirror of https://github.com/postgres/postgres.git synced 2026-10-23 13:29:09 +03:00

Fix LSN format in REPACK worker debug message

Commit 6f6f284c7e introduced use of LSN_FORMAT_ARGS across the whole
tree to remove use of manual bit-shifting, and commit 2633dae2e4
changed the printf format to be %X/%08X; however commit 28d534e2ae
violated both conventions by reintroducing the old manual-shift style
with the deprecated %X/%X format in one debug message.  Make that new
message conform to our style.

Author:  kenny <kennychen851228@gmail.com>
Backpatch-through: 19
Discussion: https://postgr.es/m/CAPXstDuWD8jg0=C8PXTXGSTTsZcjqJ+u+xKCrMpN99CXsxQzCg@mail.gmail.com
This commit is contained in:
Álvaro Herrera
2026-07-20 13:50:45 +02:00
parent 69fe2514fd
commit 10389a7e15

View File

@@ -397,8 +397,8 @@ decode_concurrent_changes(LogicalDecodingContext *ctx,
{
LogicalIncreaseRestartDecodingForSlot(end_lsn, end_lsn);
LogicalConfirmReceivedLocation(end_lsn);
elog(DEBUG1, "REPACK: confirmed receive location %X/%X",
(uint32) (end_lsn >> 32), (uint32) end_lsn);
elog(DEBUG1, "REPACK: confirmed receive location %X/%08X",
LSN_FORMAT_ARGS(end_lsn));
repack_current_segment = segno_new;
}
}