mariadb/include
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
..
atomic Bug#22320: my_atomic-t unit test fails 2010-07-05 09:00:39 -03:00
mysql 5.2->5.3 merge 2011-12-12 13:00:33 +01:00
.cvsignore
base64.h
CMakeLists.txt MWL#55 : cherrypick MySQL 5.5 CMake/build improvements in order 2011-01-29 18:51:12 +01:00
config-netware.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
config-win.h Merge 5.2->5.3 in preparation for the release of mariadb-5.3.4-rc. 2012-02-01 15:48:02 -08:00
decimal.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
errmsg.h pluggable auth with plugin examples 2010-03-29 17:13:53 +02:00
ft_global.h Merge with MySQL 5.1.57/58 2011-05-02 20:58:45 +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 Merge with 5.2. 2011-12-11 11:34:44 +02:00
help_end.h
help_start.h
keycache.h Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
lf.h post-review fixes 2009-01-15 22:27:36 +01:00
m_ctype.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
m_string.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
ma_dyncol.h portability fix: avoid anonymous structs and unions in C 2011-09-22 11:04:00 +02:00
Makefile.am Merge with 5.2. 2011-12-11 11:34:44 +02:00
maria.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
my_aes.h
my_alarm.h Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
my_alloc.h Merged 5.1 with maria 5.1 2008-10-10 18:28:41 +03:00
my_atomic.h Bug#22320: my_atomic-t unit test fails 2010-07-05 09:00:39 -03:00
my_attribute.h merge with 5.1 2010-11-30 23:11:03 +02:00
my_base.h 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
my_bit.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
my_bitmap.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
my_compare.h Merge. 2011-06-01 20:49:37 -07:00
my_compiler.h Merge with MySQL 5.1.55 2011-02-20 18:51:43 +02:00
my_dbug.h Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
my_decimal_limits.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
my_dir.h Backport Fix for Bug#24509 - 2048 file descriptor limit on windows needs increasing. 2011-06-12 15:52:07 +02:00
my_getopt.h Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
my_global.h 5.2->5.3 merge 2011-12-12 13:00:33 +01:00
my_handler.h Downported InnoDB support of Index Condition Pushdown from MySQL-5.6 code line. 2011-05-25 16:01:56 -07:00
my_libwrap.h
my_list.h
my_md5.h Bug #42434: license of mysys MD5 implementation is not GPL-compatible 2009-03-09 20:57:03 +02:00
my_net.h
my_no_pthread.h Merge with MariaDB 5.1 2011-11-24 18:48:58 +02:00
my_nosys.h
my_pthread.h merge Windows performance patches into 5.3 2011-07-05 21:46:53 +02:00
my_stacktrace.h Merge with MYSQL 5.1.61 2012-02-20 16:23:18 +02:00
my_sys.h Merge with 5.2 2011-09-10 18:01:27 +03:00
my_time.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
my_tree.h Addressed the feedback from the review of Monty on the cumulative patch for 2010-12-19 00:44:39 -08:00
my_trie.h
my_uctype.h
my_user.h
my_valgrind.h Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
my_vle.h
my_xml.h
myisam.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
myisamchk.h Merge with 5.2 2011-09-10 18:01:27 +03:00
myisammrg.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
myisampack.h
mysql.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
mysql.h.pp 5.2->5.3 merge 2011-12-12 13:00:33 +01:00
mysql_com.h 5.2->5.3 merge 2011-12-12 13:00:33 +01:00
mysql_embed.h Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
mysql_time.h
mysql_version.h.in Added mariadb and mariadb-version as my.conf option tags 2009-03-18 04:14:22 +02:00
mysys_err.h Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
queues.h Fixed wrong queue_replace(), which caused timeout failure in pbxt.flush_read_lock_kill 2010-11-02 11:03:33 +02:00
rijndael.h
service_versions.h Added progress reporting for alter table, LOAD DATA INFILE and for aria tables: check table, repair table, analyze table. 2011-07-01 15:08:30 +03:00
sha1.h Bug #56428: Replace copyright notice removed from SHA1 code (.h) 2010-10-05 17:05:37 +03:00
sql_common.h Added progress reporting for alter table, LOAD DATA INFILE and for aria tables: check table, repair table, analyze table. 2011-07-01 15:08:30 +03:00
sslopt-case.h
sslopt-longopts.h Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
sslopt-vars.h
t_ctype.h
thr_alarm.h Implementation of MWL#172: Add support for prepared statements to HANDLER READ 2011-01-04 00:55:41 +02:00
thr_lock.h Merge with 5.2. 2011-12-11 11:34:44 +02:00
typelib.h Fix LPBUG#808233 - undefined uint in typelib.h 2011-07-10 12:48:13 +02:00
violite.h Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
waiting_threads.h compilation fixes 2009-01-19 16:27:49 +01:00
welcome_copyright_notice.h Initail merge with MySQL 5.1 (XtraDB still needs to be merged) 2011-11-21 19:13:14 +02:00
wqueue.h