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

Function del_dbopt

sql/sql_db.cc:253–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251*/
252
253static void del_dbopt(const char *path)
254{
255 my_dbopt_t *opt;
256 mysql_rwlock_wrlock(&LOCK_dboptions);
257 if ((opt= (my_dbopt_t *)my_hash_search(&dboptions, (const uchar*) path,
258 strlen(path))))
259 my_hash_delete(&dboptions, (uchar*) opt);
260 mysql_rwlock_unlock(&LOCK_dboptions);
261}
262
263/*
264 Load database options file

Callers

nothing calls this directly

Calls 2

my_hash_searchFunction · 0.85
my_hash_deleteFunction · 0.85

Tested by

no test coverage detected