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

Function inline_mysql_file_delete

include/mysql/psi/mysql_file.h:1303–1327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1301}
1302
1303static inline int
1304inline_mysql_file_delete(
1305#ifdef HAVE_PSI_FILE_INTERFACE
1306 PSI_file_key key, const char *src_file, uint src_line,
1307#endif
1308 const char *name, myf flags)
1309{
1310 int result;
1311#ifdef HAVE_PSI_FILE_INTERFACE
1312 struct PSI_file_locker *locker;
1313 PSI_file_locker_state state;
1314 locker= PSI_FILE_CALL(get_thread_file_name_locker)
1315 (&state, key, PSI_FILE_DELETE, name, &locker);
1316 if (likely(locker != NULL))
1317 {
1318 PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line);
1319 result= my_delete(name, flags);
1320 PSI_FILE_CALL(end_file_close_wait)(locker, result);
1321 return result;
1322 }
1323#endif
1324
1325 result= my_delete(name, flags);
1326 return result;
1327}
1328
1329static inline int
1330inline_mysql_file_rename(

Callers

nothing calls this directly

Calls 1

my_deleteFunction · 0.85

Tested by

no test coverage detected