Content-Length: 278856 | pFad | http://github.com/postgrespro/postgres_cluster/commit/c098e7e20faebfc70b9487ca4b06efc191ef5f3e

BF turn on sort · postgrespro/postgres_cluster@c098e7e · GitHub
Skip to content

Commit c098e7e

Browse files
committed
turn on sort
1 parent 9c2151e commit c098e7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/multimaster/multimaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ static void DtmMergeWithGlobalSnapshot(Snapshot dst)
270270
memcpy(dst->xip + dst->xcnt, src->xip, src->xcnt*sizeof(TransactionId));
271271
n = dst->xcnt + src->xcnt;
272272

273-
// qsort(dst->xip, n, sizeof(TransactionId), xidComparator);
273+
qsort(dst->xip, n, sizeof(TransactionId), xidComparator);
274274
xid = InvalidTransactionId;
275275

276276
for (i = 0, j = 0; i < n && dst->xip[i] < dst->xmax; i++)
@@ -285,7 +285,7 @@ static void DtmMergeWithGlobalSnapshot(Snapshot dst)
285285
memcpy(dst->subxip + dst->subxcnt + dst->xcnt, src->xip, src->xcnt*sizeof(TransactionId));
286286
n = dst->xcnt + dst->subxcnt + src->xcnt;
287287

288-
// qsort(dst->subxip, n, sizeof(TransactionId), xidComparator);
288+
qsort(dst->subxip, n, sizeof(TransactionId), xidComparator);
289289
xid = InvalidTransactionId;
290290

291291
for (i = 0, j = 0; i < n && dst->subxip[i] < dst->xmax; i++)

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/c098e7e20faebfc70b9487ca4b06efc191ef5f3e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy