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
c3ae054d
Commit
c3ae054d
authored
May 06, 2008
by
thek@adventure.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusted a filaing test and re-enabled it.
parent
e1d31e62
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
50 deletions
+15
-50
mysql-test/r/query_cache_wlock_invalidate_func.result
mysql-test/r/query_cache_wlock_invalidate_func.result
+12
-20
mysql-test/t/disabled.def
mysql-test/t/disabled.def
+0
-1
mysql-test/t/query_cache_wlock_invalidate_func.test
mysql-test/t/query_cache_wlock_invalidate_func.test
+3
-29
No files found.
mysql-test/r/query_cache_wlock_invalidate_func.result
View file @
c3ae054d
...
...
@@ -51,11 +51,7 @@ id value
LOCK TABLE t1 WRITE;
** Connection con1 **
** Asynchronous Execution **
SET @startTime = NOW();
SELECT * FROM t1;
SET @endTime = NOW();
SET @TimeDifference = TIME_TO_SEC(TIMEDIFF(@endTime, @startTime)) >= 2;
SELECT @TimeDifference;|
** Connection con0 **
Sleeping 2 Seconds before unlock
UNLOCK TABLES;
...
...
@@ -65,8 +61,6 @@ id value
1 val1
2 val2
3 val3
@TimeDifference
1
Testing for value OFF
** Connection con0 **
SET SESSION query_cache_wlock_invalidate = OFF;
...
...
@@ -91,7 +85,14 @@ Qcache_queries_in_cache 1
1 Expected
'#----------------------------FN_DYNVARS_136_04---------------------#'
SELECT * FROM t1;
id value
1 val1
2 val2
3 val3
SHOW STATUS LIKE 'Qcache_queries_in_cache';
Variable_name Value
Qcache_queries_in_cache 1
1 Expected
** Connection con1 **
SELECT * FROM t1;
id value
...
...
@@ -101,25 +102,16 @@ id value
** Connection con0 **
LOCK TABLE t1 WRITE;
** Connection con1 **
** Asynchronous Execution **
SET @startTime = NOW();
** Should not be blocked **
SELECT * FROM t1;
SET @endTime = NOW();
SET @TimeDifference = TIME_TO_SEC(TIMEDIFF(@endTime, @startTime));
SELECT @TimeDifference;|
** Connection con0 **
Sleeping 2 Seconds before unlock
UNLOCK TABLES;
** Connection con1 **
** Asynchronous Result **
id value
1 val1
2 val2
3 val3
@TimeDifference
2
'Bug#35390 the time difference should not be 2 seconds in this case,'
'it should be less than a second;'
** Connection con0 **
Sleeping 2 Seconds before unlock
UNLOCK TABLES;
** Connection con1 **
'#----------------------------FN_DYNVARS_136_05------------------------#'
SET GLOBAL query_cache_wlock_invalidate = OFF;
** Connecting con_int1 using root **
...
...
mysql-test/t/disabled.def
View file @
c3ae054d
...
...
@@ -15,7 +15,6 @@ ps_ddl : Bug#12093 2007-12-14 pending WL#4165 / WL#4166
csv_alter_table : Bug#33696 2008-01-21 pcrews no .result file - bug allows NULL columns in CSV tables
event_scheduler_basic: BUG#35997 server seems to crash.
event_scheduler_func: BUG#35997 server seems to crash.
query_cache_wlock_invalidate_func: Bug#35390 causes not deterministic results.
thread_cache_size_func: BUG#35988 Due to not deterministic results
user_limits : Bug#23921 random failure of user_limits.test
mysql-test/t/query_cache_wlock_invalidate_func.test
View file @
c3ae054d
...
...
@@ -130,16 +130,7 @@ LOCK TABLE t1 WRITE;
connection
con1
;
--
echo
**
Asynchronous
Execution
**
delimiter
|
;
send
SET
@
startTime
=
NOW
();
SELECT
*
FROM
t1
;
SET
@
endTime
=
NOW
();
SET
@
TimeDifference
=
TIME_TO_SEC
(
TIMEDIFF
(
@
endTime
,
@
startTime
))
>=
2
;
SELECT
@
TimeDifference
;
|
delimiter
;
|
send
SELECT
*
FROM
t1
;
--
echo
**
Connection
con0
**
connection
con0
;
...
...
@@ -192,13 +183,10 @@ SHOW STATUS LIKE 'Qcache_queries_in_cache';
# Testing for blockage of access
#
disable_result_log
;
SELECT
*
FROM
t1
;
SHOW
STATUS
LIKE
'Qcache_queries_in_cache'
;
enable_result_log
;
--
echo
1
Expected
--
echo
**
Connection
con1
**
connection
con1
;
...
...
@@ -213,17 +201,8 @@ LOCK TABLE t1 WRITE;
--
echo
**
Connection
con1
**
connection
con1
;
--
echo
**
Asynchronous
Execution
**
delimiter
|
;
send
SET
@
startTime
=
NOW
();
--
echo
**
Should
not
be
blocked
**
SELECT
*
FROM
t1
;
SET
@
endTime
=
NOW
();
SET
@
TimeDifference
=
TIME_TO_SEC
(
TIMEDIFF
(
@
endTime
,
@
startTime
));
SELECT
@
TimeDifference
;
|
delimiter
;
|
--
echo
**
Connection
con0
**
connection
con0
;
...
...
@@ -234,11 +213,6 @@ UNLOCK TABLES;
--
echo
**
Connection
con1
**
connection
con1
;
--
echo
**
Asynchronous
Result
**
reap
;
--
echo
'Bug#35390 the time difference should not be 2 seconds in this case,'
--
echo
'it should be less than a second;'
--
echo
'#----------------------------FN_DYNVARS_136_05------------------------#'
#
...
...
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