forked from MariaDB/server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
624 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
CREATE TABLE t(a INT PRIMARY KEY) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t VALUES(1),(2); | ||
DELETE FROM t WHERE a=2; | ||
# Normal MariaDB shutdown would roll back the above transaction. | ||
# We want the transaction to remain open, so we will kill the server | ||
# after ensuring that any non-transactional files are clean. | ||
FLUSH TABLES; | ||
# Ensure that the above incomplete transaction becomes durable. | ||
SET GLOBAL innodb_flush_log_at_trx_commit=1; | ||
BEGIN; | ||
INSERT INTO t VALUES(0); | ||
ROLLBACK; | ||
# Kill and restart: --innodb-force-recovery=3 | ||
SELECT * FROM t; | ||
a | ||
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; | ||
SELECT * FROM t; | ||
a | ||
1 | ||
SELECT * FROM t; | ||
a | ||
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; | ||
SELECT * FROM t; | ||
a | ||
1 | ||
SELECT * FROM t; | ||
a | ||
DROP TABLE t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.