From d1e4ede7bf33a3600ed94e44c0172f3b2d6ed3a5 Mon Sep 17 00:00:00 2001 From: "monty@mysql.com" <> Date: Thu, 19 Feb 2004 19:36:53 +0200 Subject: [PATCH] crease number of open files to 2048 on windows Don't do fsync on temporary .frm files --- include/config-win.h | 2 +- sql/unireg.cc | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/config-win.h b/include/config-win.h index e6f03a10afb..bb6d663bd8d 100644 --- a/include/config-win.h +++ b/include/config-win.h @@ -316,7 +316,7 @@ inline double ulonglong2double(ulonglong value) #define FN_ROOTDIR "\\" #define FN_NETWORK_DRIVES /* Uses \\ to indicate network drives */ #define FN_NO_CASE_SENCE /* Files are not case-sensitive */ -#define MY_NFILE 1024 +#define MY_NFILE 2048 #define DO_NOT_REMOVE_THREAD_WRAPPERS #define thread_safe_increment(V,L) InterlockedIncrement((long*) &(V)) diff --git a/sql/unireg.cc b/sql/unireg.cc index 955e5cfda8a..218ea6b5b8d 100644 --- a/sql/unireg.cc +++ b/sql/unireg.cc @@ -150,7 +150,9 @@ int rea_create_table(my_string file_name, my_free((gptr) screen_buff,MYF(0)); my_afree((gptr) keybuff); - if (opt_sync_frm && my_sync(file, MYF(MY_WME))) + + if (opt_sync_frm && !(create_info->options & HA_LEX_CREATE_TMP_TABLE) && + my_sync(file, MYF(MY_WME))) goto err2; if (my_close(file,MYF(MY_WME)) || ha_create_table(file_name,create_info,0))