MCPcopy Create free account
hub / github.com/MariaDB/server / error_if_data_home_dir

Function error_if_data_home_dir

sql/sql_parse.cc:10262–10276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10260
10261
10262int error_if_data_home_dir(const char *path, const char *what)
10263{
10264 size_t dirlen;
10265 char dirpath[FN_REFLEN];
10266 if (path)
10267 {
10268 dirname_part(dirpath, path, &dirlen);
10269 if (test_if_data_home_dir(dirpath))
10270 {
10271 my_error(ER_WRONG_ARGUMENTS, MYF(0), what);
10272 return 1;
10273 }
10274 }
10275 return 0;
10276}
10277
10278/**
10279 Check that host name string is valid.

Callers 2

check_partition_dirsFunction · 0.85
create_table_implFunction · 0.85

Calls 3

dirname_partFunction · 0.85
test_if_data_home_dirFunction · 0.85
my_errorFunction · 0.85

Tested by

no test coverage detected