Skip to content

Commit 72cb36a

Browse files
committed
Fix bug in MtmUpdateLsnMapping
1 parent f2f46a0 commit 72cb36a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/mmts/multimaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2478,8 +2478,8 @@ void MtmUpdateLsnMapping(int node_id, XLogRecPtr end_lsn)
24782478
flushpos = dlist_container(MtmFlushPosition, node, iter.cur);
24792479
if (flushpos->local_end <= local_flush)
24802480
{
2481-
if (Mtm->nodes[node_id-1].flushPos < local_flush) {
2482-
Mtm->nodes[node_id-1].flushPos = local_flush;
2481+
if (Mtm->nodes[node_id-1].flushPos < flushpos->remote_end) {
2482+
Mtm->nodes[node_id-1].flushPos = flushpos->remote_end;
24832483
}
24842484
dlist_delete(iter.cur);
24852485
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