1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

add EE_BADMEMORY_RELEASE

This commit is contained in:
Daniel Black
2020-04-06 13:35:34 +10:00
committed by Sergey Vojtovich
parent 5e86b2eec8
commit 11aaf5c8d2
2 changed files with 5 additions and 2 deletions

View File

@@ -69,7 +69,8 @@ extern const char *globerrs[]; /* my_error_messages is here */
#define EE_CANT_SEEK 33 #define EE_CANT_SEEK 33
#define EE_CANT_CHMOD 34 #define EE_CANT_CHMOD 34
#define EE_CANT_COPY_OWNERSHIP 35 #define EE_CANT_COPY_OWNERSHIP 35
#define EE_ERROR_LAST 35 /* Copy last error nr */ #define EE_BADMEMORYRELEASE 36
#define EE_ERROR_LAST 36 /* Copy last error nr */
/* Add error numbers before EE_ERROR_LAST and change it accordingly. */ /* Add error numbers before EE_ERROR_LAST and change it accordingly. */

View File

@@ -55,7 +55,8 @@ const char *globerrs[GLOBERRS]=
"Can't change permissions of the file '%s' (Errcode: %M)", "Can't change permissions of the file '%s' (Errcode: %M)",
"Can't seek in file '%s' (Errcode: %M)", "Can't seek in file '%s' (Errcode: %M)",
"Can't change mode for file '%s' to 0x%lx (Errcode: %M)", "Can't change mode for file '%s' to 0x%lx (Errcode: %M)",
"Warning: Can't copy ownership for file '%s' (Errcode: %M)" "Warning: Can't copy ownership for file '%s' (Errcode: %M)",
"Failed to release memory pointer %p, %zu bytes (Errcode: %M)"
}; };
void init_glob_errs(void) void init_glob_errs(void)
@@ -101,6 +102,7 @@ void init_glob_errs()
EE(EE_CANT_SEEK) = "Can't seek in file '%s' (Errcode: %M)"; EE(EE_CANT_SEEK) = "Can't seek in file '%s' (Errcode: %M)";
EE(EE_CANT_CHMOD) = "Can't change mode for file '%s' to 0x%lx (Errcode: %M)"; EE(EE_CANT_CHMOD) = "Can't change mode for file '%s' to 0x%lx (Errcode: %M)";
EE(EE_CANT_COPY_OWNERSHIP)= "Warning: Can't copy ownership for file '%s' (Errcode: %M)"; EE(EE_CANT_COPY_OWNERSHIP)= "Warning: Can't copy ownership for file '%s' (Errcode: %M)";
EE(EE_BADMEMORYRELEASE)= "Failed to release memory pointer %p, %zu bytes (Errcode: %M)";
} }
#endif #endif