Skip to content

Commit 698932b

Browse files
knizhnikkelvich
authored andcommitted
Fix bug in MtmUpdateLsnMapping
1 parent 599262c commit 698932b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

multimaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2491,8 +2491,8 @@ void MtmUpdateLsnMapping(int node_id, XLogRecPtr end_lsn)
24912491
flushpos = dlist_container(MtmFlushPosition, node, iter.cur);
24922492
if (flushpos->local_end <= local_flush)
24932493
{
2494-
if (Mtm->nodes[node_id-1].flushPos < local_flush) {
2495-
Mtm->nodes[node_id-1].flushPos = local_flush;
2494+
if (Mtm->nodes[node_id-1].flushPos < flushpos->remote_end) {
2495+
Mtm->nodes[node_id-1].flushPos = flushpos->remote_end;
24962496
}
24972497
dlist_delete(iter.cur);
24982498
pfree(flushpos);

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