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
2f2103d5
Commit
2f2103d5
authored
Nov 09, 2016
by
Shipra Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#22874167 : fix for MAIN.LOG_TABLES-BIG UNSTABLE ON LOADED HOSTS
parent
b8ec8196
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
mysql-test/r/log_tables-big.result
mysql-test/r/log_tables-big.result
+6
-6
mysql-test/t/log_tables-big.test
mysql-test/t/log_tables-big.test
+6
-6
No files found.
mysql-test/r/log_tables-big.result
View file @
2f2103d5
...
@@ -4,25 +4,25 @@ select get_lock('bug27638', 1);
...
@@ -4,25 +4,25 @@ select get_lock('bug27638', 1);
get_lock('bug27638', 1)
get_lock('bug27638', 1)
1
1
set session long_query_time=1;
set session long_query_time=1;
truncate table mysql.slow_log;
select get_lock('bug27638', 2);
select get_lock('bug27638', 2);
get_lock('bug27638', 2)
get_lock('bug27638', 2)
0
0
select if (query_time between '00:00:01' and '00:00:10', 'OK', 'WRONG') as qt, sql_text from mysql.slow_log;
select if (query_time >= '00:00:01', 'OK', 'WRONG') as qt, sql_text from mysql.slow_log
where sql_text = 'select get_lock(\'bug27638\', 2)';
qt sql_text
qt sql_text
OK select get_lock('bug27638', 2)
OK select get_lock('bug27638', 2)
truncate table mysql.slow_log;
select get_lock('bug27638', 60);
select get_lock('bug27638', 60);
get_lock('bug27638', 60)
get_lock('bug27638', 60)
0
0
select if (query_time between '00:00:59' and '00:01:10', 'OK', 'WRONG') as qt, sql_text from mysql.slow_log;
select if (query_time >= '00:00:59', 'OK', 'WRONG') as qt, sql_text from mysql.slow_log
where sql_text = 'select get_lock(\'bug27638\', 60)';
qt sql_text
qt sql_text
OK select get_lock('bug27638', 60)
OK select get_lock('bug27638', 60)
truncate table mysql.slow_log;
select get_lock('bug27638', 101);
select get_lock('bug27638', 101);
get_lock('bug27638', 101)
get_lock('bug27638', 101)
0
0
select if (query_time between '00:01:40' and '00:01:50', 'OK', 'WRONG') as qt, sql_text from mysql.slow_log;
select if (query_time >= '00:01:40', 'OK', 'WRONG') as qt, sql_text from mysql.slow_log
where sql_text = 'select get_lock(\'bug27638\', 101)';
qt sql_text
qt sql_text
OK select get_lock('bug27638', 101)
OK select get_lock('bug27638', 101)
select release_lock('bug27638');
select release_lock('bug27638');
...
...
mysql-test/t/log_tables-big.test
View file @
2f2103d5
...
@@ -20,15 +20,15 @@ set session long_query_time=10;
...
@@ -20,15 +20,15 @@ set session long_query_time=10;
select
get_lock
(
'bug27638'
,
1
);
select
get_lock
(
'bug27638'
,
1
);
connection
con2
;
connection
con2
;
set
session
long_query_time
=
1
;
set
session
long_query_time
=
1
;
truncate
table
mysql
.
slow_log
;
select
get_lock
(
'bug27638'
,
2
);
select
get_lock
(
'bug27638'
,
2
);
select
if
(
query_time
between
'00:00:01'
and
'00:00:10'
,
'OK'
,
'WRONG'
)
as
qt
,
sql_text
from
mysql
.
slow_log
;
select
if
(
query_time
>=
'00:00:01'
,
'OK'
,
'WRONG'
)
as
qt
,
sql_text
from
mysql
.
slow_log
truncate
table
mysql
.
slow_log
;
where
sql_text
=
'select get_lock(\'bug27638\', 2)'
;
select
get_lock
(
'bug27638'
,
60
);
select
get_lock
(
'bug27638'
,
60
);
select
if
(
query_time
between
'00:00:59'
and
'00:01:10'
,
'OK'
,
'WRONG'
)
as
qt
,
sql_text
from
mysql
.
slow_log
;
select
if
(
query_time
>=
'00:00:59'
,
'OK'
,
'WRONG'
)
as
qt
,
sql_text
from
mysql
.
slow_log
truncate
table
mysql
.
slow_log
;
where
sql_text
=
'select get_lock(\'bug27638\', 60)'
;
select
get_lock
(
'bug27638'
,
101
);
select
get_lock
(
'bug27638'
,
101
);
select
if
(
query_time
between
'00:01:40'
and
'00:01:50'
,
'OK'
,
'WRONG'
)
as
qt
,
sql_text
from
mysql
.
slow_log
;
select
if
(
query_time
>=
'00:01:40'
,
'OK'
,
'WRONG'
)
as
qt
,
sql_text
from
mysql
.
slow_log
where
sql_text
=
'select get_lock(\'bug27638\', 101)'
;
connection
con1
;
connection
con1
;
select
release_lock
(
'bug27638'
);
select
release_lock
(
'bug27638'
);
connection
default
;
connection
default
;
...
...
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