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

Function inline_mysql_file_fseek

include/mysql/psi/mysql_file.h:948–972  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946}
947
948static inline my_off_t
949inline_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
974static inline my_off_t
975inline_mysql_file_ftell(

Callers

nothing calls this directly

Calls 1

my_fseekFunction · 0.85

Tested by

no test coverage detected