1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00
Files
mariadb/sql
unknown 9fd89afca0 Fix for bug #35732: read-only blocks SELECT statements in InnoDB
Problem: SELECTs prohibited for a transactional SE in autocommit mode
if read_only is set.

Fix: allow them.


mysql-test/r/read_only_innodb.result:
  Fix for bug #35732: read-only blocks SELECT statements in InnoDB
    - test result.
mysql-test/t/read_only_innodb.test:
  Fix for bug #35732: read-only blocks SELECT statements in InnoDB
    - test case.
sql/handler.cc:
  Fix for bug #35732: read-only blocks SELECT statements in InnoDB
    - in autocommit mode thd->transaction.all list is empty thus 
      is_real_trans set to TRUE for any SELECTs, so using it in the
      "read_only" check is insufficient.
      ha_check_and_coalesce_trx_read_only() changed to return number
      of engines with read-write changes. This value is used in the
      "read-only" check and checks for GLOBAL READ LOCK.
sql/lock.cc:
  Fix for bug #35732: read-only blocks SELECT statements in InnoDB
    - added assert(protect_against_global_read_lock) before decreasing,
      in order to catch (uint) 0 - 1 situation due to wrong 
      wait_if_global_read_lock()/start_waiting_global_read_lock() call
      sequence.
2008-04-08 10:20:58 +05:00
..
…
2007-10-11 13:29:09 -04:00
2007-10-11 13:29:09 -04:00
2007-10-11 13:29:09 -04:00
2007-10-11 13:29:09 -04:00
2007-08-15 17:43:08 +04:00
2008-03-12 11:19:46 +03:00
2008-02-12 10:43:38 +01:00
2008-02-28 14:55:46 -03:00
2008-03-31 11:57:18 +03:00
2008-04-02 00:43:17 +02:00
2007-10-11 13:29:09 -04:00
2007-10-11 13:29:09 -04:00
2007-10-16 16:11:50 -04:00
…
2007-10-16 16:11:50 -04:00
2008-04-02 00:43:17 +02:00
2008-02-28 14:55:46 -03:00
2007-10-11 14:37:45 -04:00
2007-10-16 16:11:50 -04:00
2007-11-06 21:57:51 +03:00
2007-10-11 14:37:45 -04:00
2007-10-16 16:11:50 -04:00
2007-10-11 14:37:45 -04:00
2008-01-30 17:35:25 +01:00
2008-04-01 11:03:12 +02:00
2008-03-25 15:20:42 +01:00
2007-06-10 14:43:57 +04:00
2008-01-23 13:26:41 -07:00
2008-03-12 11:19:46 +03:00
…
2007-10-16 16:11:50 -04:00
2007-10-16 16:11:50 -04:00
2007-06-12 18:41:56 +03:00
2007-07-01 15:33:28 -07:00
2007-10-16 16:11:50 -04:00
2007-10-16 16:11:50 -04:00
2008-03-14 14:41:08 +01:00