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

Function my_sync_dir_by_file

mysys/my_sync.c:185–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183#ifdef NEED_EXPLICIT_SYNC_DIR
184
185int my_sync_dir_by_file(const char *file_name, myf my_flags)
186{
187 char dir_name[FN_REFLEN];
188 size_t dir_name_length;
189 dirname_part(dir_name, file_name, &dir_name_length);
190 return my_sync_dir(dir_name, my_flags);
191}
192
193#else /* NEED_EXPLICIT_SYNC_DIR */
194

Callers 3

my_symlinkFunction · 0.85
my_deleteFunction · 0.85
my_createFunction · 0.85

Calls 2

dirname_partFunction · 0.85
my_sync_dirFunction · 0.85

Tested by

no test coverage detected