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

Function load_db_opt_by_name

sql/sql_db.cc:389–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387*/
388
389bool load_db_opt_by_name(THD *thd, const char *db_name,
390 HA_CREATE_INFO *db_create_info)
391{
392 char db_opt_path[FN_REFLEN + 1];
393
394 /*
395 Pass an empty file name, and the database options file name as extension
396 to avoid table name to file name encoding.
397 */
398 (void) build_table_filename(db_opt_path, sizeof(db_opt_path) - 1,
399 db_name, "", MY_DB_OPT_FILE, 0);
400
401 return load_db_opt(thd, db_opt_path, db_create_info);
402}
403
404
405/**

Callers 1

get_default_db_collationFunction · 0.85

Calls 2

load_db_optFunction · 0.85
build_table_filenameFunction · 0.70

Tested by

no test coverage detected