MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / wt_resource_destroy

Function wt_resource_destroy

mysys/waiting_threads.c:515–525  ·  view source on GitHub ↗

WT_RESOURCE destructor It's called from lf_hash and takes a pointer to an LF_SLIST instance. WT_RESOURCE is located at arg+sizeof(LF_SLIST) */

Source from the content-addressed store, hash-verified

513 WT_RESOURCE is located at arg+sizeof(LF_SLIST)
514*/
515static void wt_resource_destroy(uchar *arg)
516{
517 WT_RESOURCE *rc= (WT_RESOURCE*)(arg+LF_HASH_OVERHEAD);
518 DBUG_ENTER("wt_resource_destroy");
519
520 DBUG_ASSERT(rc->owners.elements == 0);
521 rc_rwlock_destroy(rc);
522 mysql_cond_destroy(&rc->cond);
523 delete_dynamic(&rc->owners);
524 DBUG_VOID_RETURN;
525}
526
527void wt_init()
528{

Callers

nothing calls this directly

Calls 2

rc_rwlock_destroyFunction · 0.85
delete_dynamicFunction · 0.85

Tested by

no test coverage detected