Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9e6fd299
Commit
9e6fd299
authored
Jun 07, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-25506 fixup: Wait for TRUNCATE recovery
parent
4b6f5aec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
mysql-test/suite/innodb/r/truncate_crash.result
mysql-test/suite/innodb/r/truncate_crash.result
+4
-0
mysql-test/suite/innodb/t/truncate_crash.test
mysql-test/suite/innodb/t/truncate_crash.test
+6
-0
No files found.
mysql-test/suite/innodb/r/truncate_crash.result
View file @
9e6fd299
...
...
@@ -8,6 +8,10 @@ connection default;
SET DEBUG_SYNC='now WAIT_FOR c';
# restart
disconnect wait;
SET @save_frequency=@@GLOBAL.innodb_purge_rseg_truncate_frequency;
SET GLOBAL innodb_purge_rseg_truncate_frequency=1;
InnoDB 0 transactions not purged
SET GLOBAL innodb_purge_rseg_truncate_frequency=@save_frequency;
SELECT COUNT(*) FROM t1;
COUNT(*)
0
...
...
mysql-test/suite/innodb/t/truncate_crash.test
View file @
9e6fd299
...
...
@@ -17,7 +17,13 @@ SET DEBUG_SYNC='now WAIT_FOR c';
--
source
include
/
restart_mysqld
.
inc
disconnect
wait
;
SET
@
save_frequency
=@@
GLOBAL
.
innodb_purge_rseg_truncate_frequency
;
SET
GLOBAL
innodb_purge_rseg_truncate_frequency
=
1
;
--
source
include
/
wait_all_purged
.
inc
SET
GLOBAL
innodb_purge_rseg_truncate_frequency
=@
save_frequency
;
--
replace_result
2
0
SELECT
COUNT
(
*
)
FROM
t1
;
TRUNCATE
TABLE
t1
;
DROP
TABLE
t1
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment