Lines Matching refs:sptree

25     splay_tree *sptree; /* data in nodes of tree are (vhostdb_cache_entry *) */  member
74 splay_tree *sptree = vc->sptree; in vhostdb_cache_free() local
75 while (sptree) { in vhostdb_cache_free()
76 vhostdb_cache_entry_free(sptree->data); in vhostdb_cache_free()
77 sptree = splaytree_delete(sptree, sptree->key); in vhostdb_cache_free()
86 vc->sptree = NULL; in vhostdb_cache_init()
101 splay_tree ** const sptree = &p->conf.vhostdb_cache->sptree; in mod_vhostdb_cache_query() local
102 *sptree = splaytree_splay(*sptree, ndx); in mod_vhostdb_cache_query()
104 (*sptree && (*sptree)->key == ndx) ? (*sptree)->data : NULL; in mod_vhostdb_cache_query()
116 splay_tree ** const sptree = &p->conf.vhostdb_cache->sptree; in mod_vhostdb_cache_insert() local
120 if (NULL == *sptree || (*sptree)->key != ndx) in mod_vhostdb_cache_insert()
121 *sptree = splaytree_insert(*sptree, ndx, ve); in mod_vhostdb_cache_insert()
123 vhostdb_cache_entry_free((*sptree)->data); in mod_vhostdb_cache_insert()
124 (*sptree)->data = ve; in mod_vhostdb_cache_insert()
339 splay_tree *sptree = *sptree_ptr; in mod_vhostdb_periodic_cleanup() local
343 if (!sptree) break; in mod_vhostdb_periodic_cleanup()
345 mod_vhostdb_tag_old_entries(sptree, keys, &max_ndx, max_age, cur_ts); in mod_vhostdb_periodic_cleanup()
348 sptree = splaytree_splay(sptree, ndx); in mod_vhostdb_periodic_cleanup()
349 if (sptree && sptree->key == ndx) { in mod_vhostdb_periodic_cleanup()
350 vhostdb_cache_entry_free(sptree->data); in mod_vhostdb_periodic_cleanup()
351 sptree = splaytree_delete(sptree, ndx); in mod_vhostdb_periodic_cleanup()
355 *sptree_ptr = sptree; in mod_vhostdb_periodic_cleanup()
375 mod_vhostdb_periodic_cleanup(&vc->sptree, vc->max_age, cur_ts); in TRIGGER_FUNC()