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)