mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.2 into bb-10.2-ext; also, fix MDEV-13015 After restart, InnoDB wrongly thinks that a SEQUENCE is a TABLE
sql_sequence.read_only: Show that the sequence can be read in both read-only and read-write mode, and that the sequence remains accessible after a server restart.
This commit is contained in:
@ -23,3 +23,16 @@ select next value for s1;
|
||||
ERROR HY000: Table 's1' is read only
|
||||
select next value for s1;
|
||||
ERROR HY000: Table 's1' is read only
|
||||
select * from s1;
|
||||
next_not_cached_value minimum_value maximum_value start_value increment cache_size cycle_option cycle_count
|
||||
1 1 9223372036854775806 1 1 2 0 0
|
||||
select * from s1;
|
||||
next_not_cached_value minimum_value maximum_value start_value increment cache_size cycle_option cycle_count
|
||||
1 1 9223372036854775806 1 1 2 0 0
|
||||
select next value for s1;
|
||||
next value for s1
|
||||
1
|
||||
select * from s1;
|
||||
next_not_cached_value minimum_value maximum_value start_value increment cache_size cycle_option cycle_count
|
||||
3 1 9223372036854775806 1 1 2 0 0
|
||||
drop sequence s1;
|
||||
|
@ -7,12 +7,8 @@
|
||||
|
||||
create sequence s1 cache 2 engine=innodb;
|
||||
|
||||
--exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
||||
--shutdown_server 10
|
||||
--source include/wait_until_disconnected.inc
|
||||
--enable_reconnect
|
||||
--exec echo "restart":--innodb_read_only=1 > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
||||
--source include/wait_until_connected_again.inc
|
||||
--let $restart_parameters= --innodb-read-only
|
||||
--source include/restart_mysqld.inc
|
||||
|
||||
connection default;
|
||||
show global variables like 'innodb_read_only';
|
||||
@ -38,3 +34,11 @@ select next value for s1;
|
||||
select next value for s1;
|
||||
--error ER_OPEN_AS_READONLY
|
||||
select next value for s1;
|
||||
|
||||
select * from s1;
|
||||
--let $restart_parameters=
|
||||
--source include/restart_mysqld.inc
|
||||
select * from s1;
|
||||
select next value for s1;
|
||||
select * from s1;
|
||||
drop sequence s1;
|
||||
|
Reference in New Issue
Block a user