1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00
Files
mariadb/sql
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
..
2011-06-30 17:31:31 +02:00
2011-11-24 18:48:58 +02:00
2011-11-24 18:48:58 +02:00
2012-02-21 01:58:50 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-11-24 18:48:58 +02:00
2011-12-11 11:34:44 +02:00
2011-11-24 18:48:58 +02:00
2011-05-28 05:11:32 +03:00
2011-12-11 11:34:44 +02:00
2011-11-24 18:48:58 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-16 10:21:46 +04:00
2011-12-16 10:21:46 +04:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2010-10-10 17:18:11 +03:00
2011-12-11 11:34:44 +02:00
2010-04-21 02:25:59 +02:00
2011-05-02 20:58:45 +03:00
…
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-18 23:38:37 -08:00
2011-12-11 11:34:44 +02:00
2011-11-24 18:48:58 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-02-20 18:51:43 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2012-02-21 01:58:50 +02:00
2010-04-21 02:25:59 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
…
2011-06-30 17:31:31 +02:00
2012-02-16 20:15:57 +04:00
2011-02-25 20:15:27 +02:00
2012-02-16 20:13:28 -08:00
2011-12-11 11:34:44 +02:00
2011-11-12 18:08:12 +01:00
2011-12-11 11:34:44 +02:00
2011-11-24 18:48:58 +02:00
2011-02-22 20:28:01 +02:00
2011-11-24 18:48:58 +02:00
2011-11-28 15:08:12 +01:00
2011-05-04 23:20:17 +05:00
2010-07-10 13:37:30 +03:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-11-24 18:48:58 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-02-20 18:51:43 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-06-30 17:37:13 +02:00
2011-12-11 11:34:44 +02:00
2011-12-15 16:43:28 +04:00
2011-06-30 17:31:31 +02:00
2012-02-21 09:36:48 +02:00
2011-12-11 11:34:44 +02:00
2011-11-24 18:48:58 +02:00
2011-06-30 17:37:13 +02:00
2011-06-30 17:37:13 +02:00
2011-11-24 18:48:58 +02:00
2011-04-12 14:26:06 +02:00
2011-11-24 18:48:58 +02:00
2011-11-24 18:48:58 +02:00
2011-12-11 11:34:44 +02:00
2012-02-11 15:00:15 +01:00
2011-11-24 18:48:58 +02:00
2011-12-11 11:34:44 +02:00
2010-04-01 17:34:51 +03:00
2012-02-03 16:56:12 +02:00
2011-12-11 18:39:33 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
…
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 18:39:33 +02:00
2012-02-16 18:56:10 +04:00
2011-06-30 17:37:13 +02:00
…
2011-12-11 11:34:44 +02:00
2011-11-24 18:48:58 +02:00
2011-12-11 11:34:44 +02:00
2011-11-24 18:48:58 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-11-24 18:48:58 +02:00
2011-12-14 20:36:51 +02:00
2011-06-30 17:37:13 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2012-02-21 01:58:50 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-11-24 18:48:58 +02:00
…
2011-12-11 11:34:44 +02:00
2011-06-30 17:37:13 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-11-24 18:48:58 +02:00
2011-12-11 11:34:44 +02:00
…
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00
2011-12-11 11:34:44 +02:00