Commit 3ab781a1 authored by Leif Walsh's avatar Leif Walsh

FT-273 fix compilation on osx

parent 97d77b9e
......@@ -922,7 +922,7 @@ deserialize_child_buffer_v26(NONLEAF_CHILDINFO bnc, struct rbuf *rbuf, const tok
}
invariant(rbuf->ndone == rbuf->size);
struct toku_msg_buffer_key_msn_cmp_extra extra = { .cmp = cmp, .msg_buffer = &bnc->msg_buffer };
struct toku_msg_buffer_key_msn_cmp_extra extra(cmp, &bnc->msg_buffer);
r = toku::sort<int32_t, const struct toku_msg_buffer_key_msn_cmp_extra, toku_msg_buffer_key_msn_cmp>::mergesort_r(fresh_offsets, nfresh, extra);
assert_zero(r);
bnc->fresh_message_tree.destroy();
......@@ -1809,8 +1809,7 @@ deserialize_and_upgrade_internal_node(FTNODE node,
xids_destroy(&xids);
}
struct toku_msg_buffer_key_msn_cmp_extra extra = { .cmp = bfe->ft->cmp,
.msg_buffer = &bnc->msg_buffer };
struct toku_msg_buffer_key_msn_cmp_extra extra(bfe->ft->cmp, &bnc->msg_buffer);
typedef toku::sort<int32_t, const struct toku_msg_buffer_key_msn_cmp_extra, toku_msg_buffer_key_msn_cmp> key_msn_sort;
r = key_msn_sort::mergesort_r(fresh_offsets, nfresh, extra);
assert_zero(r);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment