Skip to content

Commit e20700b

Browse files
committed
Restore sort
1 parent 9c2151e commit e20700b

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