Commit a5b411f6 authored by John Esmet's avatar John Esmet

[t:3453] cleaned up gen script, changed test to run with half second

timeout instead of one second.


git-svn-id: file:///svn/mysql/tests/mysql-test@35023 c7de825b-a66e-492c-adef-691d508d4ae1
parent f4d997b5
...@@ -54,6 +54,7 @@ write_point_queries = [ ...@@ -54,6 +54,7 @@ write_point_queries = [
write_range_queries = [ write_range_queries = [
("select for update", mysqlgen_select_for_update_range), ("select for update", mysqlgen_select_for_update_range),
("update", mysqlgen_update_range) ] ("update", mysqlgen_update_range) ]
timeouts = ["0", "500000"]
# Here's where all the magic happens # Here's where all the magic happens
print "# Tokutek" print "# Tokutek"
...@@ -62,7 +63,7 @@ print "# Generated by %s on %s;" % (__file__, datetime.date.today()) ...@@ -62,7 +63,7 @@ print "# Generated by %s on %s;" % (__file__, datetime.date.today())
print "" print ""
mysqlgen_prepare() mysqlgen_prepare()
mysqlgen_reload_table() mysqlgen_reload_table()
for timeout in ["0", "1000000"]: for timeout in timeouts:
print "# testing with timeout %s" % timeout print "# testing with timeout %s" % timeout
print "set global tokudb_lock_timeout=%s;" % timeout print "set global tokudb_lock_timeout=%s;" % timeout
print "" print ""
......
...@@ -650,7 +650,7 @@ a b ...@@ -650,7 +650,7 @@ a b
4 100 4 100
5 25 5 25
6 36 6 36
set global tokudb_lock_timeout=1000000; set global tokudb_lock_timeout=500000;
begin; begin;
select * from t where a=1 for update; select * from t where a=1 for update;
a b a b
......
...@@ -551,8 +551,8 @@ update t set b=b where a<=2; ...@@ -551,8 +551,8 @@ update t set b=b where a<=2;
select * from t; select * from t;
connection default; connection default;
# testing with timeout 1000000 # testing with timeout 500000
set global tokudb_lock_timeout=1000000; set global tokudb_lock_timeout=500000;
# testing each point query vs each point query # testing each point query vs each point query
# testing conflict "select for update" vs. "select for update" # testing conflict "select for update" vs. "select for update"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment