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
fdb9e66f
Commit
fdb9e66f
authored
Jul 05, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement a parameter for wait_all_purged.inc
parent
e9f1d8da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
mysql-test/suite/gcol/t/innodb_virtual_debug_purge.test
mysql-test/suite/gcol/t/innodb_virtual_debug_purge.test
+3
-1
mysql-test/suite/innodb/include/wait_all_purged.inc
mysql-test/suite/innodb/include/wait_all_purged.inc
+7
-1
No files found.
mysql-test/suite/gcol/t/innodb_virtual_debug_purge.test
View file @
fdb9e66f
...
...
@@ -124,7 +124,7 @@ SELECT * FROM t1;
DROP
TABLE
t1
;
# Test adding
virutal
index on existing virtual column
# Test adding index on existing virtual column
CREATE
TABLE
t1
(
a
INT
,
b
INT
,
c
INT
GENERATED
ALWAYS
AS
(
a
+
b
));
INSERT
INTO
t1
(
a
,
b
)
VALUES
(
1
,
1
),
(
2
,
2
),
(
3
,
3
),
(
4
,
4
);
...
...
@@ -156,7 +156,9 @@ INSERT INTO t1(a, b) VALUES (8, 8);
COMMIT
;
--
echo
# wait for purge to process the deleted/updated records.
let
$wait_all_purged
=
1
;
--
source
../../
innodb
/
include
/
wait_all_purged
.
inc
let
$wait_all_purged
=
0
;
SET
DEBUG_SYNC
=
'now SIGNAL purged'
;
...
...
mysql-test/suite/innodb/include/wait_all_purged.inc
View file @
fdb9e66f
# Wait for everything to be purged.
# The user should have set innodb_purge_rseg_truncate_frequency=1.
if
(
!
$wait_all_purged
)
{
let
$wait_all_purged
=
0
;
}
let
$remaining_expect
=
`select concat('InnoDB ',$wait_all_purged)`
;
let
$wait_counter
=
300
;
while
(
$wait_counter
)
{
--
replace_regex
/.*
History
list
length
([
0
-
9
]
+
)
.*/
\
1
/
let
$remaining
=
`SHOW ENGINE INNODB STATUS`
;
if
(
$remaining
==
'InnoDB 0'
)
if
(
$remaining
==
$remaining_expect
)
{
let
$wait_counter
=
0
;
}
...
...
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