| 1301 | } |
| 1302 | |
| 1303 | static inline int |
| 1304 | inline_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 | |
| 1329 | static inline int |
| 1330 | inline_mysql_file_rename( |
nothing calls this directly
no test coverage detected