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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
97dfae2e
Commit
97dfae2e
authored
Jul 21, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Loop wait with timeout until 5000 records are in table after mysqlslap with INSERT DELAYED
parent
0b786561
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
mysql-test/t/rpl_insert.test
mysql-test/t/rpl_insert.test
+13
-1
No files found.
mysql-test/t/rpl_insert.test
View file @
97dfae2e
...
...
@@ -17,7 +17,19 @@ CREATE TABLE t1 (id INT, name VARCHAR(64));
let
$query
=
"INSERT DELAYED INTO t1 VALUES (1, 'Dr. No'), (2, 'From Russia With Love'), (3, 'Goldfinger'), (4, 'Thunderball'), (5, 'You Only Live Twice')"
;
--
exec
$MYSQL_SLAP
--
silent
--
concurrency
=
5
--
iterations
=
200
--
query
=
$query
--
delimiter
=
";"
--
sleep
10
# Wait until all the 5000 inserts has been inserted into the table
--
disable_query_log
let
$counter
=
300
;
# Max 30 seconds wait
while
(
`select count(*)!=5000 from mysqlslap.t1`
)
{
sleep
0.1
;
dec
$counter
;
if
(
!
$counter
)
{
Number
of
records
in
t1
didnt
reach
5000
;
}
}
--
enable_query_log
SELECT
COUNT
(
*
)
FROM
mysqlslap
.
t1
;
sync_slave_with_master
;
...
...
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