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

Function inline_mysql_file_create_temp

include/mysql/psi/mysql_file.h:1026–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1024}
1025
1026static inline File
1027inline_mysql_file_create_temp(
1028#ifdef HAVE_PSI_FILE_INTERFACE
1029 PSI_file_key key,
1030#endif
1031 char *to, const char *dir, const char *pfx, int mode, myf myFlags)
1032{
1033 File file;
1034 /*
1035 TODO: This event is instrumented, but not timed.
1036 The problem is that the file name is now known
1037 before the create_temp_file call.
1038 */
1039 file= create_temp_file(to, dir, pfx, mode, myFlags);
1040#ifdef HAVE_PSI_FILE_INTERFACE
1041 PSI_FILE_CALL(create_file)(key, to, file);
1042#endif
1043 return file;
1044}
1045
1046static inline File
1047inline_mysql_file_open(

Callers

nothing calls this directly

Calls 1

create_temp_fileFunction · 0.85

Tested by

no test coverage detected