List:Commits« Previous MessageNext Message »
From:kpettersson Date:May 6 2008 4:17pm
Subject:bk commit into 5.1 tree (thek:1.2609)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of thek.  When thek does a push these changes
will be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2008-05-06 16:17:23+02:00, thek@adventure.(none) +3 -0
  Adjusted a filaing test and re-enabled it.

  mysql-test/r/query_cache_wlock_invalidate_func.result@stripped, 2008-05-06 16:17:21+02:00, thek@adventure.(none) +12 -20
    Adjusted test. Query cache doesn't support multiple statements and thus
    using a delimiter change won't work.

  mysql-test/t/disabled.def@stripped, 2008-05-06 16:17:21+02:00, thek@adventure.(none) +0 -1
    Enabled the query_cache_wlock_invalidate_func test.

  mysql-test/t/query_cache_wlock_invalidate_func.test@stripped, 2008-05-06 16:17:21+02:00, thek@adventure.(none) +3 -29
    Adjusted test. Query cache doesn't support multiple statements and thus
    using a delimiter change won't work.

diff -Nrup a/mysql-test/r/query_cache_wlock_invalidate_func.result b/mysql-test/r/query_cache_wlock_invalidate_func.result
--- a/mysql-test/r/query_cache_wlock_invalidate_func.result	2008-04-22 15:04:03 +02:00
+++ b/mysql-test/r/query_cache_wlock_invalidate_func.result	2008-05-06 16:17:21 +02:00
@@ -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 **
diff -Nrup a/mysql-test/t/disabled.def b/mysql-test/t/disabled.def
--- a/mysql-test/t/disabled.def	2008-05-01 12:25:36 +02:00
+++ b/mysql-test/t/disabled.def	2008-05-06 16:17:21 +02:00
@@ -15,7 +15,6 @@ ps_ddl               : Bug#12093 2007-12
 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
 
diff -Nrup a/mysql-test/t/query_cache_wlock_invalidate_func.test b/mysql-test/t/query_cache_wlock_invalidate_func.test
--- a/mysql-test/t/query_cache_wlock_invalidate_func.test	2008-04-22 15:04:04 +02:00
+++ b/mysql-test/t/query_cache_wlock_invalidate_func.test	2008-05-06 16:17:21 +02:00
@@ -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_cach
 # 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------------------------#'
 #
Thread
bk commit into 5.1 tree (thek:1.2609)kpettersson6 May