mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Bug#39392: Maria: if INSERT in UNIQUE finds uncommitted same key, error instead of wait
increase the default value of deadlock_timeout_long mysql-test/r/maria.result: no longer necessary mysql-test/t/maria.test: no longer necessary
This commit is contained in:
@@ -1900,12 +1900,10 @@ check table t2 extended;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t2 check status OK
|
||||
drop table t2;
|
||||
set session deadlock_timeout_long=60000000;
|
||||
create table t1 (a int unique) transactional=1;
|
||||
insert t1 values (1);
|
||||
lock table t1 write concurrent;
|
||||
insert t1 values (2);
|
||||
set session deadlock_timeout_long=60000000;
|
||||
lock table t1 write concurrent;
|
||||
insert t1 values (3);
|
||||
insert t1 values (2);
|
||||
|
||||
@@ -1189,13 +1189,11 @@ drop table t2;
|
||||
#
|
||||
# an example of a deadlock
|
||||
#
|
||||
set session deadlock_timeout_long=60000000;
|
||||
create table t1 (a int unique) transactional=1;
|
||||
insert t1 values (1);
|
||||
lock table t1 write concurrent;
|
||||
insert t1 values (2);
|
||||
connect(con_d,localhost,root,,);
|
||||
set session deadlock_timeout_long=60000000;
|
||||
lock table t1 write concurrent;
|
||||
insert t1 values (3);
|
||||
send insert t1 values (2);
|
||||
|
||||
@@ -5714,12 +5714,12 @@ struct my_option my_long_options[] =
|
||||
"Short timeout for the two-step deadlock detection (in microseconds)",
|
||||
(uchar**) &global_system_variables.wt_timeout_short,
|
||||
(uchar**) &max_system_variables.wt_timeout_short,
|
||||
0, GET_ULONG, REQUIRED_ARG, 100, 0, ULONG_MAX, 0, 0, 0},
|
||||
0, GET_ULONG, REQUIRED_ARG, 10000, 0, ULONG_MAX, 0, 0, 0},
|
||||
{"deadlock-timeout-long", OPT_DEADLOCK_TIMEOUT_LONG,
|
||||
"Long timeout for the two-step deadlock detection (in microseconds)",
|
||||
(uchar**) &global_system_variables.wt_timeout_long,
|
||||
(uchar**) &max_system_variables.wt_timeout_long,
|
||||
0, GET_ULONG, REQUIRED_ARG, 10000, 0, ULONG_MAX, 0, 0, 0},
|
||||
0, GET_ULONG, REQUIRED_ARG, 50000000, 0, ULONG_MAX, 0, 0, 0},
|
||||
#ifndef DBUG_OFF
|
||||
{"debug", '#', "Debug log.", (uchar**) &default_dbug_option,
|
||||
(uchar**) &default_dbug_option, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0},
|
||||
|
||||
Reference in New Issue
Block a user