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

Function inline_mysql_file_create

include/mysql/psi/mysql_file.h:1000–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

998}
999
1000static inline File
1001inline_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
1026static inline File
1027inline_mysql_file_create_temp(

Callers

nothing calls this directly

Calls 1

my_createFunction · 0.85

Tested by

no test coverage detected