mariadb/storage/maria
Michael Widenius e4e85cd2ef Fixed lp:925377 "Querying myisam table metadata while 'alter table..enable keys' is running may corrupt the table"
Fixed wrong mutex order bug in Aria when flush_log_for_bitmap() was called when table is not yet marked for change.

include/my_base.h:
  Added flag that table is opened only for status
mysql-test/r/myisam-big.result:
  Test case for lp:925377
mysql-test/t/myisam-big.test:
  Test case for lp:925377
sql/sql_base.cc:
  If thd->version == 0 (happens only when we are opening a table that is flushed under  MYSQL_LOCK_IGNORE_FLUSH), open the table in HA_OPEN_FOR_STATUS mode
storage/maria/ma_bitmap.c:
  Fixed wrong mutex order bug in Aria when flush_log_for_bitmap() was called when table is not yet marked for change.
storage/maria/ma_dbug.c:
  Ignore last_version <= 1 as these are either flushed or only opened for status
storage/maria/ma_open.c:
  Use last_version=1 as a marker that table was opened with HA_OPEN_FOR_STATUS.
  In this case we just open a new version of the table in read only mode.
storage/myisam/mi_create.c:
  Update prototype
storage/myisam/mi_dbug.c:
  Ignore last_version <= 1 as these are either flushed or only opened for status
storage/myisam/mi_open.c:
  Use last_version=1 as a marker that table was opened with HA_OPEN_FOR_STATUS.
  If HA_OPEN_FOR_STATUS is used, we will not assert if there is an old not-to-be-used version of the table existing.
  In this case we just open a new version of the table in read only mode.
storage/myisam/myisamdef.h:
  Updated prototype
2012-02-28 23:18:52 +02:00
..
unittest 5.2->5.3 merge 2011-12-12 13:00:33 +01:00
CMakeLists.txt
file_formats.txt
ft_maria.c
ha_maria.cc Remove engine-specific (but identical) icp callbacks. create one reusable 2012-02-17 13:27:41 +01:00
ha_maria.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
lockman.c
lockman.h
ma_bitmap.c Fixed lp:925377 "Querying myisam table metadata while 'alter table..enable keys' is running may corrupt the table" 2012-02-28 23:18:52 +02:00
ma_blockrec.c Merge with 5.1 2011-11-30 22:57:18 +02:00
ma_blockrec.h
ma_cache.c
ma_changed.c
ma_check.c Merge with 5.2. 2011-12-11 11:34:44 +02:00
ma_check_standalone.h
ma_checkpoint.c Merge with MariaDB 5.2 2012-02-21 01:58:50 +02:00
ma_checkpoint.h
ma_checksum.c
ma_close.c
ma_commit.c
ma_commit.h
ma_control_file.c
ma_control_file.h
ma_create.c Fixed lp:879939 "assertion in ha_maria::enable_indexes with derived_with_keys=on" 2011-10-26 20:25:18 +03:00
ma_dbug.c Fixed lp:925377 "Querying myisam table metadata while 'alter table..enable keys' is running may corrupt the table" 2012-02-28 23:18:52 +02:00
ma_delete.c Fixed bug: lp:887051 ; Error in recovery with LOAD DATA + DELETE 2011-12-13 19:57:19 +02:00
ma_delete_all.c
ma_delete_table.c
ma_dynrec.c Fix gcc 4.6 warning after merge with 5.1 2011-10-27 19:18:25 +03:00
ma_extra.c
ma_ft_boolean_search.c Merge with 5.2. 2011-12-11 11:34:44 +02:00
ma_ft_eval.c
ma_ft_eval.h
ma_ft_nlq_search.c Merge with 5.2. 2011-12-11 11:34:44 +02:00
ma_ft_parser.c
ma_ft_stem.c
ma_ft_test1.c
ma_ft_test1.h
ma_ft_update.c Fix gcc 4.6 warnings about assigned but not used variables. 2011-10-27 15:22:52 +03:00
ma_ftdefs.h
ma_fulltext.h
ma_info.c Fixed lp:879939 "assertion in ha_maria::enable_indexes with derived_with_keys=on" 2011-10-26 20:25:18 +03:00
ma_init.c
ma_key.c
ma_key_recover.c Fixed bug: lp:887051 ; Error in recovery with LOAD DATA + DELETE 2011-12-13 19:57:19 +02:00
ma_key_recover.h
ma_keycache.c
ma_locking.c Fixed bug where automaticly zerofilled table was not part of recovery if crash happended before next checkpoint. 2011-12-02 17:22:17 +02:00
ma_loghandler.c Merge with 5.2. 2011-12-11 11:34:44 +02:00
ma_loghandler.h
ma_loghandler_lsn.h
ma_norec.c
ma_open.c Fixed lp:925377 "Querying myisam table metadata while 'alter table..enable keys' is running may corrupt the table" 2012-02-28 23:18:52 +02:00
ma_packrec.c
ma_page.c
ma_pagecache.c
ma_pagecache.h
ma_pagecaches.c
ma_pagecrc.c
ma_panic.c
ma_preload.c
ma_range.c
ma_recovery.c Merge with 5.2 2011-12-14 20:36:51 +02:00
ma_recovery.h
ma_recovery_util.c
ma_recovery_util.h
ma_rename.c
ma_rfirst.c
ma_rkey.c
ma_rlast.c
ma_rnext.c
ma_rnext_same.c
ma_rprev.c
ma_rrnd.c
ma_rsame.c
ma_rsamepos.c
ma_rt_index.c bug 857066 Wrong result with ST_DISJOINT when using an index 2011-11-29 02:11:13 +04:00
ma_rt_index.h
ma_rt_key.c
ma_rt_key.h
ma_rt_mbr.c
ma_rt_mbr.h
ma_rt_split.c Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
ma_rt_test.c
ma_scan.c
ma_search.c
ma_servicethread.c
ma_servicethread.h
ma_sort.c
ma_sp_defs.h
ma_sp_key.c
ma_sp_test.c
ma_state.c
ma_state.h
ma_static.c
ma_statrec.c
ma_test1.c
ma_test2.c
ma_test3.c
ma_test_all.res
ma_test_all.sh
ma_test_big.sh
ma_test_force_start.pl
ma_test_recovery
ma_unique.c
ma_update.c
ma_write.c Merge with 5.2. 2011-12-11 11:34:44 +02:00
Makefile.am
maria_chk.c
maria_def.h Fixed lp:879939 "assertion in ha_maria::enable_indexes with derived_with_keys=on" 2011-10-26 20:25:18 +03:00
maria_dump_log.c
maria_ftdump.c
maria_pack.c Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
maria_read_log.c
maria_rename.sh
plug.in
tablockman.c
tablockman.h
test_pack
trnman.c
trnman.h
trnman_public.h