diff options
author | Michael Widenius <monty@askmonty.org> | 2011-05-18 13:36:12 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2011-05-18 13:36:12 +0300 |
commit | 5c70f813f3d12974bf67d6ff98c0ff4b9ca71d7d (patch) | |
tree | bd3e9aa514755b2c2c24dac3f3aa0d1ef8ccc62f /include/my_base.h | |
parent | 0da2df248ba5915630d04e7b7335bea409670cd6 (diff) | |
download | mariadb-git-5c70f813f3d12974bf67d6ff98c0ff4b9ca71d7d.tar.gz |
Added HA_ERR_DISK_FULL handler error
Original code by Zardosht Kasheff
sql/handler.cc:
Added HA_ERR_DISK_FULL and ENOSPC (for handler that uses normal errno).
This sets 'fatal_error' to ensure that the error is logged to err file (which hopefully is on another disk...)
Diffstat (limited to 'include/my_base.h')
-rw-r--r-- | include/my_base.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/my_base.h b/include/my_base.h index c17897670ba..0029d01d75e 100644 --- a/include/my_base.h +++ b/include/my_base.h @@ -446,7 +446,8 @@ enum ha_base_keytype { #define HA_ERR_ROW_NOT_VISIBLE 177 #define HA_ERR_TOO_MANY_CONCURRENT_TRXS 178 /*Too many active concurrent transactions */ #define HA_ERR_ABORTED_BY_USER 179 -#define HA_ERR_LAST 179 /* Copy of last error nr */ +#define HA_ERR_DISK_FULL 180 +#define HA_ERR_LAST 180 /* Copy of last error nr */ /* Number of different errors */ #define HA_ERR_ERRORS (HA_ERR_LAST - HA_ERR_FIRST + 1) |