Content-Length: 256568 | pFad | http://github.com/postgrespro/postgres_cluster/commit/32380a1ea0f36e5b77941457ac555b4999ff1922

EC assign csn for local transactions. Fix by kk · postgrespro/postgres_cluster@32380a1 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/32380a1ea0f36e5b77941457ac555b4999ff1922

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy