Make the tsd member init functions to take tsd_t * type.

This commit is contained in:
Qi Wang
2017-04-04 11:09:45 -07:00
committed by Qi Wang
parent d3cda3423c
commit 492e9f301e
3 changed files with 9 additions and 3 deletions

View File

@@ -425,13 +425,18 @@ rtree_leaf_elm_witness_release(tsdn_t *tsdn, const rtree_t *rtree,
rtree_leaf_elm_witness_dalloc(tsdn_tsd(tsdn), witness, elm);
}
bool
void
rtree_ctx_data_init(rtree_ctx_t *ctx) {
for (unsigned i = 0; i < RTREE_CTX_NCACHE; i++) {
rtree_ctx_cache_elm_t *cache = &ctx->cache[i];
cache->leafkey = RTREE_LEAFKEY_INVALID;
cache->leaf = NULL;
}
}
bool
tsd_rtree_ctx_data_init(tsd_t *tsd) {
rtree_ctx_data_init(&tsd->rtree_ctx);
return false;
}