diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-05-30 09:01:18 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-05-30 09:01:18 +1000 |
commit | cc96decdbaa2338798811c31d484a073fe0ac688 (patch) | |
tree | 761c41f6d8535ff6beae8a6e485cc13200bf37dc | |
parent | 7e3a9dd3f6af195b97cd78680eaab95ad067835e (diff) | |
download | mongo-cc96decdbaa2338798811c31d484a073fe0ac688.tar.gz |
comment: __snapshot_sort no longer calculates a size.
-rw-r--r-- | src/txn/txn.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/txn/txn.c b/src/txn/txn.c index 15e2cdab65a..36149170239 100644 --- a/src/txn/txn.c +++ b/src/txn/txn.c @@ -24,7 +24,7 @@ __wt_txnid_cmp(const void *v1, const void *v2) /* * __txn_sort_snapshot -- - * Sort a snapshot and size for faster searching. + * Sort a snapshot for faster searching and set the min/max bounds. */ static void __txn_sort_snapshot(WT_SESSION_IMPL *session, uint32_t n, wt_txnid_t id) @@ -33,7 +33,6 @@ __txn_sort_snapshot(WT_SESSION_IMPL *session, uint32_t n, wt_txnid_t id) txn = &session->txn; - /* Sort the snapshot and size for faster searching. */ qsort(txn->snapshot, n, sizeof(wt_txnid_t), __wt_txnid_cmp); txn->snapshot_count = n; txn->snap_min = (n == 0) ? id : txn->snapshot[0]; |