summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <gkodinov/kgeorge@magare.gmz>2007-07-11 10:49:54 +0300
committerunknown <gkodinov/kgeorge@magare.gmz>2007-07-11 10:49:54 +0300
commit1abab6c7c7461bac95afd424e80b9a953fdf897b (patch)
treeada188315b9dd58d074fb0ee2259aa3dd1c205d7 /include
parent8195a213c2fadfb185e755ce6dda2162df1a5529 (diff)
downloadmariadb-git-1abab6c7c7461bac95afd424e80b9a953fdf897b.tar.gz
Bug #29325:
By default MyISAM overwrites .MYD and .MYI files no DATA DIRECTORY option is used. This can lead to two tables using the same .MYD and .MYI files (that can't be dropped). To prevent CREATE TABLE from overwriting a file a new option is introduced : keep_files_on_create When this is on the CREATE TABLE throws an error if either the .MYD or .MYI exists for a MyISAM table. The option is off by default (resulting in compatible behavior). include/my_base.h: Bug #29325: introduce keep_files_on_create myisam/mi_create.c: Bug #29325: introduce keep_files_on_create mysql-test/r/create.result: Bug #29325: test case mysql-test/t/create.test: Bug #29325: test case sql/ha_myisam.cc: Bug #29325: introduce keep_files_on_create sql/set_var.cc: Bug #29325: introduce keep_files_on_create sql/sql_class.h: Bug #29325: introduce keep_files_on_create sql/sql_table.cc: Bug #29325: introduce keep_files_on_create sql/unireg.cc: Bug #29325: introduce keep_files_on_create
Diffstat (limited to 'include')
-rw-r--r--include/my_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/my_base.h b/include/my_base.h
index d07a4de8e6a..d8732808cee 100644
--- a/include/my_base.h
+++ b/include/my_base.h
@@ -279,6 +279,7 @@ enum ha_base_keytype {
#define HA_PACK_RECORD 2 /* Request packed record format */
#define HA_CREATE_TMP_TABLE 4
#define HA_CREATE_CHECKSUM 8
+#define HA_CREATE_KEEP_FILES 16 /* don't overwrite .MYD and MYI */
#define HA_CREATE_DELAY_KEY_WRITE 64
/*