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

Function get_relative_path

sql/mysqld.cc:2161–2172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2159
2160
2161static char *get_relative_path(const char *path)
2162{
2163 if (test_if_hard_path(path) &&
2164 is_prefix(path,DEFAULT_MYSQL_HOME) &&
2165 strcmp(DEFAULT_MYSQL_HOME,FN_ROOTDIR))
2166 {
2167 path+=(uint) strlen(DEFAULT_MYSQL_HOME);
2168 while (*path == FN_LIBCHAR || *path == FN_LIBCHAR2)
2169 path++;
2170 }
2171 return (char*) path;
2172}
2173
2174
2175/**

Callers 1

fix_pathsFunction · 0.85

Calls 2

test_if_hard_pathFunction · 0.85
is_prefixFunction · 0.85

Tested by

no test coverage detected