List:Commits« Previous MessageNext Message »
From:Satya B Date:January 28 2009 11:53am
Subject:bzr commit into mysql-5.1-bugteam branch (satya.bn:2751) Bug#39886
View as plain text  
#At file:///home/satya/WORK/mysql-5.1-bugteam-39886/

 2751 Satya B	2009-01-28
      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.
modified:
  sql/handler.cc

per-file messages:
  sql/handler.cc
    Fixed handler::print_error() to write the error message to error log
    when the table is full.
=== modified file 'sql/handler.cc'
--- a/sql/handler.cc	2008-12-10 20:14:50 +0000
+++ b/sql/handler.cc	2009-01-28 11:52:53 +0000
@@ -2655,8 +2655,12 @@ void handler::print_error(int error, myf
     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;

Thread
bzr commit into mysql-5.1-bugteam branch (satya.bn:2751) Bug#39886Satya B28 Jan