mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
A proper InnoDB shutdown after aborted startup was introduced
in commit 81b7fe9d38
.
Also related to this is MDEV-11985, making read-only shutdown more robust.
If startup was aborted, there may exist recovered transactions that were
not rolled back. Relax the assertions accordingly.
62 lines
1.6 KiB
Plaintext
62 lines
1.6 KiB
Plaintext
CREATE TABLE t1(a INT PRIMARY KEY) ENGINE=InnoDB;
|
|
BEGIN;
|
|
INSERT INTO t1 VALUES (42);
|
|
# Kill and restart: --innodb-log-file-size=6M
|
|
SELECT * FROM t1;
|
|
a
|
|
INSERT INTO t1 VALUES (42);
|
|
BEGIN;
|
|
DELETE FROM t1;
|
|
# Kill and restart: --innodb-log-files-in-group=3 --innodb-log-file-size=5M
|
|
SELECT * FROM t1;
|
|
a
|
|
42
|
|
INSERT INTO t1 VALUES (0),(123);
|
|
BEGIN;
|
|
DELETE FROM t1 WHERE a>0;
|
|
# Persist the state of the above incomplete transaction by
|
|
# causing a redo log write for another transaction.
|
|
connect con1, localhost, root;
|
|
SET GLOBAL innodb_flush_log_at_trx_commit=1;
|
|
DELETE FROM t1 WHERE a=0;
|
|
disconnect con1;
|
|
connection default;
|
|
# Kill the server
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
ERROR 42000: Unknown storage engine 'InnoDB'
|
|
SELECT * FROM t1;
|
|
a
|
|
42
|
|
123
|
|
DROP TABLE t1;
|