From: Michael Paquier Date: Mon, 1 Jul 2024 01:08:00 +0000 (+0900) Subject: Format better code for xact_decode()'s XLOG_XACT_INVALIDATIONS X-Git-Tag: REL_18_BETA1~2519 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=797adaf0febe02e097353fa6b21dd67fd6bd73c9;p=postgresql.git Format better code for xact_decode()'s XLOG_XACT_INVALIDATIONS This makes the code more consistent with the surroundings. Author: ChangAo Chen Reviewed-by: Ashutosh Bapat Discussion: https://postgr.es/m/CAExHW5tNTevUh58SKddTtcX3yU_5_PDSC8Mdp-Q2hc9PpZHRJg@mail.gmail.com --- diff --git a/src/backend/replication/logical/decode.c b/src/backend/replication/logical/decode.c index 8ec5adfd909..d687ceee339 100644 --- a/src/backend/replication/logical/decode.c +++ b/src/backend/replication/logical/decode.c @@ -301,12 +301,13 @@ xact_decode(LogicalDecodingContext *ctx, XLogRecordBuffer *buf) ReorderBufferXidSetCatalogChanges(ctx->reorder, xid, buf->origptr); } - else if ((!ctx->fast_forward)) + else if (!ctx->fast_forward) ReorderBufferImmediateInvalidation(ctx->reorder, invals->nmsgs, invals->msgs); + + break; } - break; case XLOG_XACT_PREPARE: { xl_xact_parsed_prepare parsed;