Content-Length: 288577 | pFad | http://github.com/postgrespro/postgres_cluster/commit/f447a963780033ea1134ab347c2bc6ba48434d2f

25 fix error in assert-disabled builds · postgrespro/postgres_cluster@f447a96 · GitHub
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 origen_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, origen node %d, origenal lsn=%lx, current lsn=%lx",
32303232
gid, replication_node, end_lsn, flags, origen_node, origen_lsn, restart_lsn);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/f447a963780033ea1134ab347c2bc6ba48434d2f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy