summaryrefslogtreecommitdiff
path: root/include/mysys_err.h
diff options
context:
space:
mode:
authormonty@mysql.com <>2003-11-02 15:55:02 +0200
committermonty@mysql.com <>2003-11-02 15:55:02 +0200
commit4668b54837f3cd0a4ee71b16841c41a6bdc44c06 (patch)
treecb9bb7181d68f8c4f3d892367e08536d2f609a19 /include/mysys_err.h
parent2ec94ade8feee8e4e971fcc37920785a6f22413c (diff)
downloadmariadb-git-4668b54837f3cd0a4ee71b16841c41a6bdc44c06.tar.gz
Call my_sync() after all data is written to .frm file
Added my_sync() to mysys which will do fsync/fdatasync/_commit() on a file.
Diffstat (limited to 'include/mysys_err.h')
-rw-r--r--include/mysys_err.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mysys_err.h b/include/mysys_err.h
index a86765c74fd..0ee89e91ee4 100644
--- a/include/mysys_err.h
+++ b/include/mysys_err.h
@@ -21,7 +21,7 @@ extern "C" {
#endif
#define GLOB 0 /* Error maps */
-#define GLOBERRS 27 /* Max number of error messages in map's */
+#define GLOBERRS 28 /* Max number of error messages in map's */
#define EE(X) globerrs[ X ] /* Defines to add error to right map */
extern const char * NEAR globerrs[]; /* my_error_messages is here */
@@ -53,6 +53,7 @@ extern const char * NEAR globerrs[]; /* my_error_messages is here */
#define EE_CANT_READLINK 24
#define EE_CANT_SYMLINK 25
#define EE_REALPATH 26
+#define EE_SYNC 27
/* exit codes for all MySQL programs */