| 998 | } |
| 999 | |
| 1000 | static inline File |
| 1001 | inline_mysql_file_create( |
| 1002 | #ifdef HAVE_PSI_FILE_INTERFACE |
| 1003 | PSI_file_key key, const char *src_file, uint src_line, |
| 1004 | #endif |
| 1005 | const char *filename, int create_flags, int access_flags, myf myFlags) |
| 1006 | { |
| 1007 | File file; |
| 1008 | #ifdef HAVE_PSI_FILE_INTERFACE |
| 1009 | struct PSI_file_locker *locker; |
| 1010 | PSI_file_locker_state state; |
| 1011 | locker= PSI_FILE_CALL(get_thread_file_name_locker) |
| 1012 | (&state, key, PSI_FILE_CREATE, filename, &locker); |
| 1013 | if (likely(locker != NULL)) |
| 1014 | { |
| 1015 | PSI_FILE_CALL(start_file_open_wait)(locker, src_file, src_line); |
| 1016 | file= my_create(filename, create_flags, access_flags, myFlags); |
| 1017 | PSI_FILE_CALL(end_file_open_wait_and_bind_to_descriptor)(locker, file); |
| 1018 | return file; |
| 1019 | } |
| 1020 | #endif |
| 1021 | |
| 1022 | file= my_create(filename, create_flags, access_flags, myFlags); |
| 1023 | return file; |
| 1024 | } |
| 1025 | |
| 1026 | static inline File |
| 1027 | inline_mysql_file_create_temp( |
nothing calls this directly
no test coverage detected