mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-30 16:47:29 +03:00
Rtree: Pull leaf contents into their own struct.
This commit is contained in:
parent
faec7219b2
commit
bd4fdf295e
4 changed files with 110 additions and 50 deletions
|
|
@ -137,8 +137,11 @@ TEST_BEGIN(test_rtree_random) {
|
|||
&rtree_ctx, keys[i], false, true);
|
||||
expect_ptr_not_null(elm,
|
||||
"Unexpected rtree_leaf_elm_lookup() failure");
|
||||
rtree_leaf_elm_write(tsdn, rtree, elm, &edata, SC_NSIZES,
|
||||
false);
|
||||
rtree_leaf_elm_contents_t contents;
|
||||
contents.edata = &edata;
|
||||
contents.szind = SC_NSIZES;
|
||||
contents.slab = false;
|
||||
rtree_leaf_elm_write(tsdn, rtree, elm, contents);
|
||||
expect_ptr_eq(rtree_edata_read(tsdn, rtree, &rtree_ctx,
|
||||
keys[i], true), &edata,
|
||||
"rtree_edata_read() should return previously set value");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue