Skip to content

Commit f447a96

Browse files
committed
fix error in assert-disabled builds
1 parent 58761e5 commit f447a96

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

contrib/mmts/multimaster.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3182,14 +3182,16 @@ bool MtmFilterTransaction(char* record, int size)
31823182
int replication_node;
31833183
int origin_node;
31843184
char const* gid = "";
3185+
char msgtype;
31853186
bool duplicate = false;
31863187

31873188
s.data = record;
31883189
s.len = size;
31893190
s.maxlen = -1;
31903191
s.cursor = 0;
31913192

3192-
Assert(pq_getmsgbyte(&s) == 'C');
3193+
msgtype = pq_getmsgbyte(&s);
3194+
Assert(msgtype == 'C');
31933195
flags = pq_getmsgbyte(&s); /* flags */
31943196
replication_node = pq_getmsgbyte(&s);
31953197

@@ -3224,7 +3226,7 @@ bool MtmFilterTransaction(char* record, int size)
32243226
} else {
32253227
duplicate = true;
32263228
}
3227-
3229+
32283230
if (duplicate) {
32293231
MTM_LOG1("Ignore transaction %s from node %d lsn %lx, flags=%x, origin node %d, original lsn=%lx, current lsn=%lx",
32303232
gid, replication_node, end_lsn, flags, origin_node, origin_lsn, restart_lsn);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy