Format better code for xact_decode()'s XLOG_XACT_INVALIDATIONS
authorMichael Paquier <michael@paquier.xyz>
Mon, 1 Jul 2024 01:08:00 +0000 (10:08 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 1 Jul 2024 01:08:00 +0000 (10:08 +0900)
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

src/backend/replication/logical/decode.c

index 8ec5adfd9099a012c13fdb717ffc4ddca1747ff5..d687ceee339f8fe8c13d2bb869c523586d3db2d1 100644 (file)
@@ -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;