mariadb/include
Michael Widenius 668306640e Fixed MDEV-4291: Assertion `trid >= info->s->state.create_trid' failure or data corruption (key points to record
outside datafile) on INSERT into an Aria table.

The isssue was that the check if a table was moved between systems didn't take into account that create_trid could be bigger than the current max trid on the new system.
This could only happen if one tried to move a table that one had just done a 'REPAIR TABLE' on.
Tables that one had run 'aria_chk --zerofill' on worked.

Fixed this by assuming that if create_trid is too big then the table has been moved from one system to another and we have to do an automatic zerofill.

Other fixed:

- Added a check to detect a wrong create_trid in 'check table'.
- aria_chk -dvv will now write out also the create_trid (to make future error finding easier)
- aria_chk --zerofill doesn't anymore require a aria_control_file
- Removed some warnings from safemalloc when using aria_chk, ma_test1 and ma_test2.


include/myisamchk.h:
  Removed wrong 'QQ' flags (the flags are used by myisamchk and aria_chk)
storage/maria/ha_maria.cc:
  maria_chk_status() can now also return an error.
storage/maria/ma_check.c:
  In maria_chk_status() check if create_trid value is too big.
storage/maria/ma_open.c:
  Changed check if table is moved so that we can detect wrong create_trid values.
  Don't set STATE_NOT_MOVABLE flag if we are doing repair/check. This was done so that aria_chk can print out the movable flag.
storage/maria/ma_test1.c:
  Added code to suppress memory leaks from safemalloc
storage/maria/ma_test2.c:
  Added code to suppress memory leaks from safemalloc
storage/maria/maria_chk.c:
  Added code to suppress memory leaks from safemalloc.
  Make help text a bit better for --HELP and --zerofill.
  Incresed version number.
  Don't require a control file if we are only doing --zerofill
  Print out 'create_trid' when doing --describe --verbose
storage/maria/unittest/ma_test_recovery.expected:
  Updated result file
2013-05-13 00:43:46 +03:00
..
atomic centos5 gcc 4.1 asm bug 2013-05-07 18:28:36 +02:00
mysql mysql-5.5.31 merge 2013-05-07 13:05:09 +02:00
base64.h Updated/added copyright headers 2013-02-26 06:35:17 +01:00
CMakeLists.txt Fix for MDEV-533: Confusing error code when doing auto-increment insert for out-of-range values 2012-09-18 15:14:19 +03:00
decimal.h merge 2012-04-05 23:07:18 +02:00
errmsg.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
ft_global.h mysql-5.5.31 merge 2013-05-07 13:05:09 +02:00
handler_state.h Fix for MDEV-533: Confusing error code when doing auto-increment insert for out-of-range values 2012-09-18 15:14:19 +03:00
hash.h Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
heap.h Updated/added copyright headers 2012-02-15 17:13:47 +01:00
keycache.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
lf.h 1. fix an old typo. A purgatory must be cleaned on every LF_PURGATORY_SIZE freeing, 2012-09-04 12:12:28 +02:00
m_ctype.h mysql-5.5.31 merge 2013-05-07 13:05:09 +02:00
m_string.h mysql-5.5.31 merge 2013-05-07 13:05:09 +02:00
ma_dyncol.h portability fix: avoid anonymous structs and unions in C 2011-09-22 11:04:00 +02:00
maria.h 5.3 merge 2012-05-04 07:16:38 +02:00
my_aes.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_alarm.h 5.3 merge 2012-01-13 15:50:02 +01:00
my_alloc.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_atomic.h mysql-5.5.18 merge 2011-11-03 19:17:05 +01:00
my_attribute.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_base.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_bit.h merge with 5.3 2011-10-19 21:45:18 +02:00
my_bitmap.h 5.3 merge 2012-01-13 15:50:02 +01:00
my_compare.h 5.3->5.5 merge 2011-11-22 18:04:38 +01:00
my_compiler.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_context.h MWL#192 after-merge fixes. 2012-02-23 15:42:21 +01:00
my_dbug.h Merge MWL#192: Non-blocking client library, into MariaDB 5.5. 2012-02-21 22:15:44 +01:00
my_decimal_limits.h 5.3 merge 2012-01-13 15:50:02 +01:00
my_dir.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_getopt.h merge with MySQL 5.1.65 2012-08-22 11:40:39 +02:00
my_global.h 5.3 merge 2013-04-12 01:01:18 +02:00
my_libwrap.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_list.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_md5.h Updated/added copyright headers 2013-02-26 06:35:17 +01:00
my_net.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_nosys.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_pthread.h Buildbot fixes and cleanups: 2013-01-11 02:03:43 +02:00
my_rdtsc.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_stacktrace.h Define dummy my_init_stacktrace() to allow one to call it without #ifdef HAVE_STACKTRACE 2012-04-03 15:48:56 +03:00
my_sys.h mysql-5.5.31 merge 2013-05-07 13:05:09 +02:00
my_time.h 5.3 merge 2012-01-13 15:50:02 +01:00
my_tree.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
my_uctype.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
my_user.h Updated/added copyright headers 2013-02-26 06:35:17 +01:00
my_valgrind.h Do not use Valgrind client requests in a normal release build, they have a small but noticable performance impact. 2012-03-22 12:31:09 +01:00
my_xml.h Updated/added copyright headers 2013-02-26 06:35:17 +01:00
myisam.h mysql-5.5.22 merge 2012-03-28 01:04:46 +02:00
myisamchk.h Fixed MDEV-4291: Assertion `trid >= info->s->state.create_trid' failure or data corruption (key points to record 2013-05-13 00:43:46 +03:00
myisammrg.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
myisampack.h mysql-5.5.31 merge 2013-05-07 13:05:09 +02:00
mysql.h mysql-5.5.31 merge 2013-05-07 13:05:09 +02:00
mysql.h.pp MDEV-3802. Millisecond timeout support in non-blocking client library. 2012-10-12 10:54:46 +02:00
mysql_async.h Fix non-ssl build. 2012-01-08 10:13:39 +01:00
mysql_com.h MDEV-4332 Increase username length from 16 characters 2013-04-18 22:17:29 +02:00
mysql_embed.h 5.3 merge 2012-01-13 15:50:02 +01:00
mysql_time.h Updated/added copyright headers 2013-02-26 06:35:17 +01:00
mysql_version.h.in mysql-5.5.31 merge 2013-05-07 13:05:09 +02:00
mysqld_default_groups.h MDEV-4068 rpm scriptlet chown command dangerous 2013-03-06 09:32:13 +01:00
mysys_err.h 5.3 merge 2012-01-13 15:50:02 +01:00
password.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
probes_mysql.d.base Updated/added copyright headers 2011-06-30 17:46:53 +02:00
probes_mysql.h more portable fix for lp:942266 - 5.5 builds fail with systemtap-sdt-dev installed on Ubuntu 2012-05-11 09:18:00 +02:00
probes_mysql_nodtrace.h MDEV-4243 : remove several clang warnings. 2013-03-29 14:56:09 +01:00
queues.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
rijndael.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
service_versions.h MDEV-4065 thd_kill_statement service 2013-01-18 19:04:23 +01:00
sha1.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sha2.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
sql_common.h 5.2 merge. 2012-08-22 16:45:25 +02:00
sslopt-case.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
sslopt-longopts.h 5.3 merge 2012-01-13 15:50:02 +01:00
sslopt-vars.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
t_ctype.h Many files: 2006-12-23 20:17:15 +01:00
thr_alarm.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
thr_lock.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
thread_pool_priv.h mysql-5.5.31 merge 2013-05-07 13:05:09 +02:00
typelib.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
violite.h Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
waiting_threads.h use PSI wrappers in aria and other non-MySQL code 2011-07-13 21:10:18 +02:00
welcome_copyright_notice.h mysql-5.5.31 merge 2013-05-07 13:05:09 +02:00
wqueue.h fix the include guards and add missing gplv2 headers 2012-02-17 12:19:38 +01:00