Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2-2
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)