| 946 | } |
| 947 | |
| 948 | static inline my_off_t |
| 949 | inline_mysql_file_fseek( |
| 950 | #ifdef HAVE_PSI_FILE_INTERFACE |
| 951 | const char *src_file, uint src_line, |
| 952 | #endif |
| 953 | MYSQL_FILE *file, my_off_t pos, int whence, myf flags) |
| 954 | { |
| 955 | my_off_t result; |
| 956 | #ifdef HAVE_PSI_FILE_INTERFACE |
| 957 | struct PSI_file_locker *locker; |
| 958 | PSI_file_locker_state state; |
| 959 | locker= PSI_FILE_CALL(get_thread_file_stream_locker) |
| 960 | (&state, file->m_psi, PSI_FILE_SEEK); |
| 961 | if (likely(locker != NULL)) |
| 962 | { |
| 963 | PSI_FILE_CALL(start_file_wait)(locker, (size_t) 0, src_file, src_line); |
| 964 | result= my_fseek(file->m_file, pos, whence, flags); |
| 965 | PSI_FILE_CALL(end_file_wait)(locker, (size_t) 0); |
| 966 | return result; |
| 967 | } |
| 968 | #endif |
| 969 | |
| 970 | result= my_fseek(file->m_file, pos, whence, flags); |
| 971 | return result; |
| 972 | } |
| 973 | |
| 974 | static inline my_off_t |
| 975 | inline_mysql_file_ftell( |
nothing calls this directly
no test coverage detected