diff options
author | Satya B <satya.bn@sun.com> | 2009-01-28 17:22:53 +0530 |
---|---|---|
committer | Satya B <satya.bn@sun.com> | 2009-01-28 17:22:53 +0530 |
commit | fe75e52c25036ebd5e89288dd1f3861b312db7d7 (patch) | |
tree | 816325452bc5da0d180624a40757a49768ac00fc /sql/handler.cc | |
parent | d9ccc5b6bf5ef5df7a53d832267348c44c9ec65a (diff) | |
download | mariadb-git-fe75e52c25036ebd5e89288dd1f3861b312db7d7.tar.gz |
Fix for BUG#39886 - Table full for MEMORY table is not written into error log
When a MEMORY table is full the error is returned to client but not written
to error log.
Fixed the handler api to write the error mesage to error log when the table is
full.
Note: No TestCase included as testing the error log is non-trivial.
sql/handler.cc:
Fixed handler::print_error() to write the error message to error log
when the table is full.
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index 938fb9a63ba..948cb08b13f 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -2655,8 +2655,12 @@ void handler::print_error(int error, myf errflag) break; case HA_ERR_RECORD_FILE_FULL: case HA_ERR_INDEX_FILE_FULL: + { textno=ER_RECORD_FILE_FULL; + /* Write the error message to error log */ + errflag|= ME_NOREFRESH; break; + } case HA_ERR_LOCK_WAIT_TIMEOUT: textno=ER_LOCK_WAIT_TIMEOUT; break; |