Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit698932b

Browse files
knizhnikkelvich
authored andcommitted
Fix bug in MtmUpdateLsnMapping
1 parent599262c commit698932b

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)

[8]ページ先頭

©2009-2025 Movatter.jp