Skip to content

Commit 32380a1

Browse files
committed
assign csn for local transactions. Fix by kk
1 parent 2083132 commit 32380a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

multimaster.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,10 @@ MtmEndTransaction(MtmCurrentTrans* x, bool commit)
15301530
ts->csn = x->csn;
15311531
MtmSyncClock(ts->csn);
15321532
}
1533+
if (ts->isLocal)
1534+
{
1535+
ts->csn = MtmAssignCSN();
1536+
}
15331537
Mtm->lastCsn = ts->csn;
15341538
ts->status = TRANSACTION_STATUS_COMMITTED;
15351539
MtmAdjustSubtransactions(ts);

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