MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / rtree_ctx_data_init

Function rtree_ctx_data_init

deps/jemalloc/src/rtree.c:308–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void
309rtree_ctx_data_init(rtree_ctx_t *ctx) {
310 for (unsigned i = 0; i < RTREE_CTX_NCACHE; i++) {
311 rtree_ctx_cache_elm_t *cache = &ctx->cache[i];
312 cache->leafkey = RTREE_LEAFKEY_INVALID;
313 cache->leaf = NULL;
314 }
315 for (unsigned i = 0; i < RTREE_CTX_NCACHE_L2; i++) {
316 rtree_ctx_cache_elm_t *cache = &ctx->l2_cache[i];
317 cache->leafkey = RTREE_LEAFKEY_INVALID;
318 cache->leaf = NULL;
319 }
320}

Callers 5

tsd_data_initFunction · 0.70
tsd_data_init_nocleanupFunction · 0.70
rtree.cFile · 0.50
TEST_BEGINFunction · 0.50
tsd.hFile · 0.50

Calls

no outgoing calls

Tested by 1

TEST_BEGINFunction · 0.40