File tree Expand file tree Collapse file tree 5 files changed +11
-17
lines changed Expand file tree Collapse file tree 5 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -1109,7 +1109,7 @@ dict_init(void)
1109
1109
dict_operation_lock, SYNC_DICT_OPERATION);
1110
1110
1111
1111
if (!srv_read_only_mode) {
1112
- dict_foreign_err_file = os_file_create_tmpfile (NULL );
1112
+ dict_foreign_err_file = os_file_create_tmpfile ();
1113
1113
ut_a (dict_foreign_err_file);
1114
1114
}
1115
1115
Original file line number Diff line number Diff line change @@ -535,14 +535,11 @@ struct os_file_stat_t {
535
535
};
536
536
537
537
/* * Create a temporary file. This function is like tmpfile(3), but
538
- the temporary file is created in the given parameter path. If the path
539
- is null then it will create the file in the mysql server configuration
538
+ the temporary file is created in the in the mysql server configuration
540
539
parameter (--tmpdir).
541
- @param[in] path location for creating temporary file
542
540
@return temporary file handle, or NULL on error */
543
541
FILE*
544
- os_file_create_tmpfile (
545
- const char * path);
542
+ os_file_create_tmpfile ();
546
543
547
544
/* * The os_file_opendir() function opens a directory stream corresponding to the
548
545
directory named by the dirname argument. The directory stream is positioned
Original file line number Diff line number Diff line change @@ -496,7 +496,7 @@ void lock_sys_t::create(ulint n_cells)
496
496
prdt_page_hash = hash_create (n_cells);
497
497
498
498
if (!srv_read_only_mode) {
499
- lock_latest_err_file = os_file_create_tmpfile (NULL );
499
+ lock_latest_err_file = os_file_create_tmpfile ();
500
500
ut_a (lock_latest_err_file);
501
501
}
502
502
}
Original file line number Diff line number Diff line change @@ -1215,19 +1215,16 @@ AIO::release_with_mutex(Slot* slot)
1215
1215
release ();
1216
1216
}
1217
1217
1218
- /* * Creates a temporary file. This function is like tmpfile(3), but
1219
- the temporary file is created in the given parameter path. If the path
1220
- is NULL then it will create the file in the MySQL server configuration
1218
+ /* * Create a temporary file. This function is like tmpfile(3), but
1219
+ the temporary file is created in the in the mysql server configuration
1221
1220
parameter (--tmpdir).
1222
- @param[in] path location for creating temporary file
1223
- @@return temporary file handle, or NULL on error */
1221
+ @return temporary file handle, or NULL on error */
1224
1222
FILE*
1225
- os_file_create_tmpfile (
1226
- const char * path)
1223
+ os_file_create_tmpfile ()
1227
1224
{
1228
1225
FILE* file = NULL ;
1229
1226
WAIT_ALLOW_WRITES ();
1230
- int fd = innobase_mysql_tmpfile (path );
1227
+ int fd = innobase_mysql_tmpfile (NULL );
1231
1228
1232
1229
if (fd >= 0 ) {
1233
1230
file = fdopen (fd, " w+b" );
Original file line number Diff line number Diff line change @@ -1754,7 +1754,7 @@ innobase_start_or_create_for_mysql()
1754
1754
} else {
1755
1755
1756
1756
srv_monitor_file_name = NULL ;
1757
- srv_monitor_file = os_file_create_tmpfile (NULL );
1757
+ srv_monitor_file = os_file_create_tmpfile ();
1758
1758
1759
1759
if (!srv_monitor_file && err == DB_SUCCESS) {
1760
1760
err = DB_ERROR;
@@ -1764,7 +1764,7 @@ innobase_start_or_create_for_mysql()
1764
1764
mutex_create (LATCH_ID_SRV_MISC_TMPFILE,
1765
1765
&srv_misc_tmpfile_mutex);
1766
1766
1767
- srv_misc_tmpfile = os_file_create_tmpfile (NULL );
1767
+ srv_misc_tmpfile = os_file_create_tmpfile ();
1768
1768
1769
1769
if (!srv_misc_tmpfile && err == DB_SUCCESS) {
1770
1770
err = DB_ERROR;
You can’t perform that action at this time.
0 commit comments