diff options
author | monty@mysql.com <> | 2003-11-02 15:55:02 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2003-11-02 15:55:02 +0200 |
commit | 4668b54837f3cd0a4ee71b16841c41a6bdc44c06 (patch) | |
tree | cb9bb7181d68f8c4f3d892367e08536d2f609a19 /mysys/errors.c | |
parent | 2ec94ade8feee8e4e971fcc37920785a6f22413c (diff) | |
download | mariadb-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 'mysys/errors.c')
-rw-r--r-- | mysys/errors.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mysys/errors.c b/mysys/errors.c index 8a120e0e869..7d755718b16 100644 --- a/mysys/errors.c +++ b/mysys/errors.c @@ -48,6 +48,7 @@ const char * NEAR globerrs[GLOBERRS]= "Can't read value for symlink '%s' (Error %d)", "Can't create symlink '%s' pointing at '%s' (Error %d)", "Error on realpath() on '%s' (Error %d)", + "Can't sync file '%s' to disk (Errcode: %d)", }; void init_glob_errs(void) @@ -84,8 +85,9 @@ void init_glob_errs() EE(EE_CANT_MKDIR) ="Can't create directory '%s' (Errcode: %d)"; EE(EE_UNKNOWN_CHARSET)= "Character set is not a compiled character set and is not specified in the %s file"; EE(EE_OUT_OF_FILERESOURCES)="Out of resources when opening file '%s' (Errcode: %d)"; - EE(EE_CANT_READLINK)="Can't read value for symlink '%s' (Error %d)"; - EE(EE_CANT_SYMLINK)="Can't create symlink '%s' pointing at '%s' (Error %d)"; - EE(EE_REALPATH)="Error on realpath() on '%s' (Error %d)"; + EE(EE_CANT_READLINK)= "Can't read value for symlink '%s' (Error %d)"; + EE(EE_CANT_SYMLINK)= "Can't create symlink '%s' pointing at '%s' (Error %d)"; + EE(EE_REALPATH)= "Error on realpath() on '%s' (Error %d)"; + EE(EE_SYNC)= "Can't sync file '%s' to disk (Errcode: %d)"; } #endif |