Rtree: Pull leaf contents into their own struct.
This commit is contained in:
committed by
David Goldblatt
parent
faec7219b2
commit
bd4fdf295e
@@ -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");
|
||||
|
Reference in New Issue
Block a user