Content-Length: 278861 | pFad | http://github.com/postgrespro/postgres_cluster/commit/e20700b8419b34ac2c88485ed5f3fcb87e01ebc9

64 Restore sort · postgrespro/postgres_cluster@e20700b · GitHub
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)








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

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy