mariadb/mysys
unknown bec3feaa0b WL#1895 - Print message to error log in case of detected MyISAM corruption
Changed my_error() to print error messages, which come from
arbitrary registered ranges of error messages. Messages can
be unregistered (and should be at end of the program).
Added registration of handler error messages.
Added a new mi_print_error() macro and a new 
mi_report_error() function, which supply error
messages with a table name.
Added calls to mi_print_error() or mi_report_error()
at all places in MyISAM, where table corruption is detected.


extra/comp_err.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added prints for ER_ERROR_FIRST and ER_ERROR_LAST.
  Removed print for ER_ERROR_MESSAGES.
include/errmsg.h:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added declaration for a new function.
  Added first and last error number defines.
include/my_base.h:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added first and last error number defines.
include/my_sys.h:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Removed obsolete defines.
  Removed a global variable, which held pointers to the error message arrays.
  Added declarations for new functions.
include/mysys_err.h:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Removed an obsolete define.
  Changed two defines to use the new defines.
  Added first and last error number defines.
libmysql/errmsg.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Replaced global array initialization by proper registration
  and unregistration of client error messages.
libmysql/libmysql.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added a call for unregistration of client error messages.
myisam/mi_delete.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added calls to the new error logging function at all places, where
  corruption is detected.
  Added a debugging call to pretend MyISAM corruption in case a special
  debug string is set.
  Added a debugging call to test undefined error numbers in case a special
  debug string is set.
myisam/mi_extra.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added calls to the new error logging function at all places, where
  corruption is detected.
myisam/mi_info.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added the error logging function.
myisam/mi_key.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added calls to the new error logging function at all places, where
  corruption is detected.
myisam/mi_keycache.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added calls to the new error logging function at all places, where
  corruption is detected.
myisam/mi_locking.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added calls to the new error logging function at all places, where
  corruption is detected.
myisam/mi_open.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added calls to the new error logging function at all places, where
  corruption is detected.
  Added a debugging call to pretend MyISAM corruption in case a special
  debug string is set.
myisam/mi_page.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added calls to the new error logging function at all places, where
  corruption is detected.
myisam/mi_range.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added calls to the new error logging function at all places, where
  corruption is detected.
myisam/mi_rkey.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added calls to the new error logging function at all places, where
  corruption is detected.
myisam/mi_search.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added calls to the new error logging function at all places, where
  corruption is detected.
myisam/mi_update.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added calls to the new error logging function at all places, where
  corruption is detected.
  Added a debugging call to pretend MyISAM corruption in case a special
  debug string is set.
myisam/mi_write.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added calls to the new error logging function at all places, where
  corruption is detected.
  Added a debugging call to pretend MyISAM corruption in case a special
  debug string is set.
myisam/myisamdef.h:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added the declaration of the new error logging function
  and a new macro.
mysql-test/r/merge.result:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Changed test results. These come from the changed error reporting
  in openfrm().
mysql-test/r/repair.result:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Changed test results. These come from the changed error reporting
  in openfrm().
mysql-test/t/merge.test:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Changederror numbers. These come from the changed error reporting
  in openfrm().
mysys/errors.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Dropped the assignment of the global errors to the
  dropped global pointer array.
mysys/my_error.c:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Changed my_error() from using a static array of pointers to
  error message arrays to using a linked list of structures
  with pointers to array message arrays.
  Added functions for registering and unregistering error 
  message arrays to the chain.
sql/derror.cc:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Changed reading of mysqld error messages to using the new
  registering and unregistering functions.
sql/handler.cc:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Added initialization and deinitialization of handler error messages.
  Included more handler error messages in the mapping to
  mysqld error messages.
sql/mysqld.cc:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Changed deinitialization of error messages to proper
  unregistration.
sql/table.cc:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Changed error reporting in openfrm() so that error messages from
  handler::ha_open() are reported by handler::print_error(). This
  changed messages from "Can't open 't1.MYI' (errno: 130)" to
  "Incorrect file format 't1'" for example.
sql/unireg.h:
  WL#1895 - Print message to error log in case of detected MyISAM corruption
  Changed two defines to use the new defines.
2004-12-23 20:11:38 +01:00
..
.cvsignore Import changeset 2000-07-31 21:29:14 +02:00
array.c Rewrite function comments 2002-07-09 18:59:52 +03:00
ChangeLog Fix skipp -> skip once and for all. 2004-06-03 11:52:54 -05:00
charset-def.c Persian collation, contibuted by Jody McIntyre 2004-09-13 12:07:01 +05:00
charset.c Bug #6737: REGEXP gives wrong result with case sensitive collation: 2004-11-22 11:58:40 +04:00
checksum.c Remove 'extern' references from .cc files 2003-09-13 11:35:29 +03:00
default.c Portability fix for gcc 2.95.3 2004-11-12 21:24:16 +02:00
errors.c WL#1895 - Print message to error log in case of detected MyISAM corruption 2004-12-23 20:11:38 +01:00
hash.c Fix compiler warnings (detected by Intel's C++ compiler) 2004-10-22 18:44:51 +03:00
list.c Add 0x before pointers (to help with debugging) 2004-12-18 05:19:21 +02:00
make-ccc Import changeset 2000-07-31 21:29:14 +02:00
make-conf.c Update copyright 2001-12-06 14:10:51 +02:00
Makefile.am Forward port of HugeTLB, InnoDB doublewrite and checksums patches to 5.0 2004-12-14 22:26:31 +03:00
md5.c Update copyright 2001-12-06 14:10:51 +02:00
mf_brkhant.c Update copyright 2001-12-06 14:10:51 +02:00
mf_cache.c Update copyright 2001-12-06 14:10:51 +02:00
mf_dirname.c Merge with 4.0.16 2003-10-07 15:42:26 +03:00
mf_fn_ext.c Fixed searching after ssl directories. 2002-09-05 16:17:08 +03:00
mf_format.c A set of mysql_home_path-related fixes 2004-09-07 11:55:34 +05:00
mf_getdate.c file parser for new .frm 2004-05-11 23:23:49 +03:00
mf_iocache.c Changed %lx -> 0x%lx (for easier comparison of debug files) 2004-08-23 13:46:51 +03:00
mf_iocache2.c Merge with 4.1.3-beta 2004-07-07 11:29:39 +03:00
mf_keycache.c Forward port of HugeTLB, InnoDB doublewrite and checksums patches to 5.0 2004-12-14 22:26:31 +03:00
mf_keycaches.c correct name of function in synopsis 2004-11-18 16:52:45 +02:00
mf_loadpath.c Fixed testcases and bug introduced by last changeset 2003-07-01 17:59:42 +03:00
mf_pack.c Fix skipp -> skip once and for all. 2004-06-03 11:52:54 -05:00
mf_path.c Changes from Novell for NetWare platform 2003-04-24 20:48:54 -04:00
mf_qsort.c mf_qsort.c: 2002-02-23 15:22:19 +00:00
mf_qsort2.c Update copyright 2001-12-06 14:10:51 +02:00
mf_radix.c Update copyright 2001-12-06 14:10:51 +02:00
mf_same.c Update copyright 2001-12-06 14:10:51 +02:00
mf_sort.c Update copyright 2001-12-06 14:10:51 +02:00
mf_soundex.c Fix skipp -> skip once and for all. 2004-06-03 11:52:54 -05:00
mf_strip.c merge with 3.23.51 2002-05-27 23:52:21 +03:00
mf_tempdir.c in netware ':' is also a valid path character 2004-02-24 23:15:38 +01:00
mf_tempfile.c merged 2004-08-20 00:52:43 +02:00
mf_unixpath.c Update copyright 2001-12-06 14:10:51 +02:00
mf_util.c Update copyright 2001-12-06 14:10:51 +02:00
mf_wcomp.c backport wild_compare fix from 4.1 - bug#3924 2004-05-29 17:52:20 +02:00
mf_wfile.c Fix skipp -> skip once and for all. 2004-06-03 11:52:54 -05:00
mulalloc.c Two-level index structure for FULLTEXT indexes 2003-01-21 19:24:34 +01:00
my_aes.c Portability fixes for Fortre C++ 5.0 (on Sun) in 32 and 64 bit modes. 2002-11-07 03:54:00 +02:00
my_alarm.c Update copyright 2001-12-06 14:10:51 +02:00
my_alloc.c A lot of fixes for prepared statements (PS): 2004-10-26 19:30:01 +03:00
my_append.c Added missing SSL library (Should be in source distribution) 2003-11-28 12:18:13 +02:00
my_bit.c This is first cset for WL#1394 "Optimize index merge when all involved index ranges include only values with equal keys" 2004-05-13 01:38:40 +04:00
my_bitmap.c merge with 4.1 2004-10-29 19:26:52 +03:00
my_chsize.c mmap portability layer, mmap for Windows 2004-11-04 22:55:47 +01:00
my_clock.c Fixes for Netware 2003-01-28 08:38:28 +02:00
my_compress.c Support for character set conversion in binary protocol: another go 2004-05-25 02:03:49 +04:00
my_copy.c Added missing SSL library (Should be in source distribution) 2003-11-28 12:18:13 +02:00
my_crc32.c First step of implementation of WL#1518 "make bundled zlib 2004-07-21 17:36:26 -07:00
my_create.c Update copyright 2001-12-06 14:10:51 +02:00
my_delete.c Update copyright 2001-12-06 14:10:51 +02:00
my_div.c Max open files handling moved to my_set_max_open_files() 2004-02-19 19:33:09 +02:00
my_dup.c Max open files handling moved to my_set_max_open_files() 2004-02-19 19:33:09 +02:00
my_error.c WL#1895 - Print message to error log in case of detected MyISAM corruption 2004-12-23 20:11:38 +01:00
my_file.c Max open files handling moved to my_set_max_open_files() 2004-02-19 19:33:09 +02:00
my_fopen.c Changed %lx -> 0x%lx (for easier comparison of debug files) 2004-08-23 13:46:51 +03:00
my_fstream.c Merge with 4.0 for 4.1 release 2004-10-06 19:14:33 +03:00
my_gethostbyname.c assert.h needed for my_dbug.h now is included in my_dbug.h, where it for 2004-06-10 23:58:39 +04:00
my_gethwaddr.c Review of all code pushed since last review 2004-10-20 01:28:42 +03:00
my_getopt.c Merge with 4.0 2004-09-01 04:12:09 +03:00
my_getsystime.c Fixes for prior commit 2004-05-05 10:54:11 -03:00
my_getwd.c Changed %lx -> 0x%lx (for easier comparison of debug files) 2004-08-23 13:46:51 +03:00
my_handler.c Merge with global tree 2004-12-18 06:05:16 +02:00
my_init.c A fix (bug #6551: UMASK_DIR & UMASK not taken into account (mysqld.cc my_init.c inconsistency)). 2004-11-11 12:35:55 +04:00
my_largepage.c Forward port of HugeTLB, InnoDB doublewrite and checksums patches to 5.0 2004-12-14 22:26:31 +03:00
my_lib.c Fix warning VC++ and fix applied fisrt to source 4.1 2004-08-24 10:40:20 -03:00
my_lock.c Prevent potential problems on 32-Bit machines. 2004-06-25 11:35:37 +02:00
my_lockmem.c Update copyright 2001-12-06 14:10:51 +02:00
my_lread.c Update copyright 2001-12-06 14:10:51 +02:00
my_lwrite.c Changed %lx -> 0x%lx (for easier comparison of debug files) 2004-08-23 13:46:51 +03:00
my_malloc.c Changed %lx -> 0x%lx (for easier comparison of debug files) 2004-08-23 13:46:51 +03:00
my_messnc.c Fixes for Netware 2003-01-28 08:38:28 +02:00
my_mkdir.c Update copyright 2001-12-06 14:10:51 +02:00
my_mmap.c mmap portability layer, mmap for Windows 2004-11-04 22:55:47 +01:00
my_net.c merge with 3.23.52 2002-08-12 04:04:43 +03:00
my_netware.c Added patches from Novell 2004-05-25 22:00:14 +03:00
my_new.cc reverted 2004-02-05 22:08:29 +01:00
my_once.c Portability fixes (for windows) 2003-01-21 21:07:59 +02:00
my_open.c Max open files handling moved to my_set_max_open_files() 2004-02-19 19:33:09 +02:00
my_os2cond.c Fixes for Netware 2003-01-28 08:38:28 +02:00
my_os2dirsrch.c Fixes for Netware 2003-01-28 08:38:28 +02:00
my_os2dirsrch.h Fixes for Netware 2003-01-28 08:38:28 +02:00
my_os2dlfcn.c Fixed problem with BIGINT and shutdown on AIX 2002-08-12 03:28:02 +03:00
my_os2dlfcn.h0 Fixes for OS2. 2001-08-22 01:45:07 +03:00
my_os2file64.c Fixes for Netware 2003-01-28 08:38:28 +02:00
my_os2mutex.c Fixes for Netware 2003-01-28 08:38:28 +02:00
my_os2thread.c Fixes for Netware 2003-01-28 08:38:28 +02:00
my_os2tls.c Fixes for Netware 2003-01-28 08:38:28 +02:00
my_port.c Fixed typo so that ulonglong are properly converted to double on AIX with gcc 3.1 2002-08-16 12:50:21 +03:00
my_pread.c Merge with 4.0 for 4.1 release 2004-10-06 19:14:33 +03:00
my_pthread.c assert.h needed for my_dbug.h now is included in my_dbug.h, where it for 2004-06-10 23:58:39 +04:00
my_quick.c Update copyright 2001-12-06 14:10:51 +02:00
my_read.c Changed %lx -> 0x%lx (for easier comparison of debug files) 2004-08-23 13:46:51 +03:00
my_realloc.c Changed %lx -> 0x%lx (for easier comparison of debug files) 2004-08-23 13:46:51 +03:00
my_redel.c Added missing SSL library (Should be in source distribution) 2003-11-28 12:18:13 +02:00
my_rename.c Merge mashka.mysql.fi:/home/my/mysql-3.23 2002-12-14 13:02:30 +02:00
my_seek.c assert.h needed for my_dbug.h now is included in my_dbug.h, where it for 2004-06-10 23:58:39 +04:00
my_semaphore.c more #ifdef THREAD added 2003-04-30 12:32:43 +02:00
my_sleep.c Fixes for Netware 2003-01-28 08:38:28 +02:00
my_static.c Forward port of HugeTLB, InnoDB doublewrite and checksums patches to 5.0 2004-12-14 22:26:31 +03:00
my_static.h Changed prototype of killed_ptr() to make it more portable 2004-05-26 19:12:49 +03:00
my_symlink.c Merge with 4.0.17 2003-12-17 17:35:34 +02:00
my_symlink2.c Fix autoincrement for signed columns (Bug #1366) 2003-12-12 22:26:58 +02:00
my_sync.c Call my_sync() after all data is written to .frm file 2003-11-02 15:55:02 +02:00
my_tempnam.c Made my_snprintf() behavior snprintf() compatible when printing %x arguments (it should 2004-05-27 17:54:40 +04:00
my_thr_init.c Fix compiler warnings (detected by Intel's C++ compiler) 2004-10-22 18:44:51 +03:00
my_wincond.c Update copyright 2001-12-06 14:10:51 +02:00
my_winsem.c Added support for semaphores in mysys. 2002-06-29 00:16:15 +03:00
my_winthread.c Update copyright 2001-12-06 14:10:51 +02:00
my_write.c Merge with 4.0 for 4.1 release 2004-10-06 19:14:33 +03:00
mysys_priv.h Merge with 4.0 for 4.1 release 2004-10-06 19:14:33 +03:00
ptr_cmp.c s/ha_store_ptr/my_store_ptr/ 2004-11-07 22:39:27 +01:00
queues.c merge with 4.0 2003-10-16 03:08:40 +03:00
raid.cc Add 0x before pointers (to help with debugging) 2004-12-18 05:19:21 +02:00
raid2.c Split raid C function to separate file to make things more portable. 2002-05-27 10:02:00 +03:00
rijndael.c assert.h needed for my_dbug.h now is included in my_dbug.h, where it for 2004-06-10 23:58:39 +04:00
safemalloc.c Changed %lx -> 0x%lx (for easier comparison of debug files) 2004-08-23 13:46:51 +03:00
sha1.c Added support for projects 'classic', 'classic nt', 'pro' and 'pro nt' 2004-05-19 16:38:12 +03:00
string.c Update copyright 2001-12-06 14:10:51 +02:00
test_charset.c Removed some warnings reported by valgrind 2003-11-04 14:09:03 +02:00
test_dir.c Update copyright 2001-12-06 14:10:51 +02:00
test_fn.c Fixed memory leak in DROP DATABASE when using RAID tables (Bug #2882) 2004-03-10 13:46:11 +02:00
test_xml.c license has been added 2002-12-31 13:06:30 +04:00
testhash.c SCRUM 2003-09-19 14:44:31 +05:00
thr_alarm.c Changed %lx -> 0x%lx (for easier comparison of debug files) 2004-08-23 13:46:51 +03:00
thr_lock.c Merge with 4.0 2004-10-20 16:24:28 +03:00
thr_mutex.c Changed %lx -> 0x%lx (for easier comparison of debug files) 2004-08-23 13:46:51 +03:00
thr_rwlock.c merge with 3.23.52 2002-08-12 04:04:43 +03:00
tree.c Changed %lx -> 0x%lx (for easier comparison of debug files) 2004-08-23 13:46:51 +03:00
typelib.c Changed %lx -> 0x%lx (for easier comparison of debug files) 2004-08-23 13:46:51 +03:00