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

Function inline_mysql_file_close

include/mysql/psi/mysql_file.h:1101–1125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1099#endif
1100
1101static inline int
1102inline_mysql_file_close(
1103#ifdef HAVE_PSI_FILE_INTERFACE
1104 const char *src_file, uint src_line,
1105#endif
1106 File file, myf flags)
1107{
1108 int result;
1109#ifdef HAVE_PSI_FILE_INTERFACE
1110 struct PSI_file_locker *locker;
1111 PSI_file_locker_state state;
1112 locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)
1113 (&state, file, PSI_FILE_CLOSE);
1114 if (likely(locker != NULL))
1115 {
1116 PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line);
1117 result= my_close(file, flags);
1118 PSI_FILE_CALL(end_file_close_wait)(locker, result);
1119 return result;
1120 }
1121#endif
1122
1123 result= my_close(file, flags);
1124 return result;
1125}
1126
1127static inline size_t
1128inline_mysql_file_read(

Callers

nothing calls this directly

Calls 1

my_closeFunction · 0.85

Tested by

no test coverage detected