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
5a8a3c3f
Commit
5a8a3c3f
authored
Sep 21, 2017
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-13855 - Rename idle_readwrite_transaction_timeout to
idle_write_transaction_timeout
parent
d4b2dfa9
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
26 deletions
+26
-26
mysql-test/r/mysqld--help.result
mysql-test/r/mysqld--help.result
+4
-4
mysql-test/r/transaction_timeout.result
mysql-test/r/transaction_timeout.result
+5
-5
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
+4
-4
mysql-test/suite/sys_vars/r/sysvars_server_notembedded.result
...l-test/suite/sys_vars/r/sysvars_server_notembedded.result
+4
-4
mysql-test/t/transaction_timeout.test
mysql-test/t/transaction_timeout.test
+2
-2
sql/sql_class.h
sql/sql_class.h
+3
-3
sql/sys_vars.cc
sql/sys_vars.cc
+4
-4
No files found.
mysql-test/r/mysqld--help.result
View file @
5a8a3c3f
...
...
@@ -322,12 +322,12 @@ The following options may be given as the first argument:
--idle-readonly-transaction-timeout=#
The number of seconds the server waits for read-only idle
transaction
--idle-readwrite-transaction-timeout=#
The number of seconds the server waits for read-write
idle transaction
--idle-transaction-timeout=#
The number of seconds the server waits for idle
transaction
--idle-write-transaction-timeout=#
The number of seconds the server waits for write idle
transaction
--ignore-builtin-innodb
Disable initialization of builtin InnoDB plugin
--ignore-db-dirs=name
...
...
@@ -1348,8 +1348,8 @@ histogram-size 0
histogram-type SINGLE_PREC_HB
host-cache-size 279
idle-readonly-transaction-timeout 0
idle-readwrite-transaction-timeout 0
idle-transaction-timeout 0
idle-write-transaction-timeout 0
ignore-builtin-innodb FALSE
ignore-db-dirs
init-connect
...
...
mysql-test/r/transaction_timeout.result
View file @
5a8a3c3f
...
...
@@ -4,8 +4,8 @@ connect c0,localhost,root,,test,,;
SHOW VARIABLES LIKE 'idle_%transaction_timeout';
Variable_name Value
idle_readonly_transaction_timeout 0
idle_readwrite_transaction_timeout 0
idle_transaction_timeout 0
idle_write_transaction_timeout 0
SET autocommit=0;
SET idle_transaction_timeout=1;
BEGIN;
...
...
@@ -19,8 +19,8 @@ connect c1,localhost,root,,test,,;
SHOW VARIABLES LIKE 'idle_%transaction_timeout';
Variable_name Value
idle_readonly_transaction_timeout 0
idle_readwrite_transaction_timeout 0
idle_transaction_timeout 0
idle_write_transaction_timeout 0
SET autocommit=0;
SET idle_readonly_transaction_timeout=1;
BEGIN;
...
...
@@ -29,15 +29,15 @@ a
SELECT * FROM t1;
Got one of the listed errors
disconnect c1;
# Test idle_
read
write_transaction_timeout
# Test idle_write_transaction_timeout
connect c2,localhost,root,,test,,;
SHOW VARIABLES LIKE 'idle_%transaction_timeout';
Variable_name Value
idle_readonly_transaction_timeout 0
idle_readwrite_transaction_timeout 0
idle_transaction_timeout 0
idle_write_transaction_timeout 0
SET autocommit=0;
SET idle_
read
write_transaction_timeout=1;
SET idle_write_transaction_timeout=1;
BEGIN;
SELECT * FROM t1;
a
...
...
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
View file @
5a8a3c3f
...
...
@@ -1283,28 +1283,28 @@ NUMERIC_BLOCK_SIZE 1
ENUM_VALUE_LIST NULL
READ_ONLY NO
COMMAND_LINE_ARGUMENT REQUIRED
VARIABLE_NAME IDLE_
READWRITE_
TRANSACTION_TIMEOUT
VARIABLE_NAME IDLE_TRANSACTION_TIMEOUT
SESSION_VALUE 0
GLOBAL_VALUE 0
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE 0
VARIABLE_SCOPE SESSION
VARIABLE_TYPE INT UNSIGNED
VARIABLE_COMMENT The number of seconds the server waits for
read-write
idle transaction
VARIABLE_COMMENT The number of seconds the server waits for idle transaction
NUMERIC_MIN_VALUE 0
NUMERIC_MAX_VALUE 31536000
NUMERIC_BLOCK_SIZE 1
ENUM_VALUE_LIST NULL
READ_ONLY NO
COMMAND_LINE_ARGUMENT REQUIRED
VARIABLE_NAME IDLE_TRANSACTION_TIMEOUT
VARIABLE_NAME IDLE_
WRITE_
TRANSACTION_TIMEOUT
SESSION_VALUE 0
GLOBAL_VALUE 0
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE 0
VARIABLE_SCOPE SESSION
VARIABLE_TYPE INT UNSIGNED
VARIABLE_COMMENT The number of seconds the server waits for idle transaction
VARIABLE_COMMENT The number of seconds the server waits for
write
idle transaction
NUMERIC_MIN_VALUE 0
NUMERIC_MAX_VALUE 31536000
NUMERIC_BLOCK_SIZE 1
...
...
mysql-test/suite/sys_vars/r/sysvars_server_notembedded.result
View file @
5a8a3c3f
...
...
@@ -1409,28 +1409,28 @@ NUMERIC_BLOCK_SIZE 1
ENUM_VALUE_LIST NULL
READ_ONLY NO
COMMAND_LINE_ARGUMENT REQUIRED
VARIABLE_NAME IDLE_
READWRITE_
TRANSACTION_TIMEOUT
VARIABLE_NAME IDLE_TRANSACTION_TIMEOUT
SESSION_VALUE 0
GLOBAL_VALUE 0
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE 0
VARIABLE_SCOPE SESSION
VARIABLE_TYPE INT UNSIGNED
VARIABLE_COMMENT The number of seconds the server waits for
read-write
idle transaction
VARIABLE_COMMENT The number of seconds the server waits for idle transaction
NUMERIC_MIN_VALUE 0
NUMERIC_MAX_VALUE 31536000
NUMERIC_BLOCK_SIZE 1
ENUM_VALUE_LIST NULL
READ_ONLY NO
COMMAND_LINE_ARGUMENT REQUIRED
VARIABLE_NAME IDLE_TRANSACTION_TIMEOUT
VARIABLE_NAME IDLE_
WRITE_
TRANSACTION_TIMEOUT
SESSION_VALUE 0
GLOBAL_VALUE 0
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE 0
VARIABLE_SCOPE SESSION
VARIABLE_TYPE INT UNSIGNED
VARIABLE_COMMENT The number of seconds the server waits for idle transaction
VARIABLE_COMMENT The number of seconds the server waits for
write
idle transaction
NUMERIC_MIN_VALUE 0
NUMERIC_MAX_VALUE 31536000
NUMERIC_BLOCK_SIZE 1
...
...
mysql-test/t/transaction_timeout.test
View file @
5a8a3c3f
...
...
@@ -32,11 +32,11 @@ sleep 2;
SELECT
*
FROM
t1
;
disconnect
c1
;
--
echo
# Test idle_
read
write_transaction_timeout
--
echo
# Test idle_write_transaction_timeout
connect
(
c2
,
localhost
,
root
,,
test
,,);
SHOW
VARIABLES
LIKE
'idle_%transaction_timeout'
;
SET
autocommit
=
0
;
SET
idle_
read
write_transaction_timeout
=
1
;
SET
idle_write_transaction_timeout
=
1
;
BEGIN
;
SELECT
*
FROM
t1
;
...
...
sql/sql_class.h
View file @
5a8a3c3f
...
...
@@ -698,7 +698,7 @@ typedef struct system_variables
uint
idle_transaction_timeout
;
uint
idle_readonly_transaction_timeout
;
uint
idle_
read
write_transaction_timeout
;
uint
idle_write_transaction_timeout
;
uint
column_compression_threshold
;
uint
column_compression_zlib_level
;
}
SV
;
...
...
@@ -4531,8 +4531,8 @@ class THD :public Statement,
{
if
(
transaction
.
all
.
is_trx_read_write
())
{
if
(
variables
.
idle_
read
write_transaction_timeout
>
0
)
return
variables
.
idle_
read
write_transaction_timeout
;
if
(
variables
.
idle_write_transaction_timeout
>
0
)
return
variables
.
idle_write_transaction_timeout
;
}
else
{
...
...
sql/sys_vars.cc
View file @
5a8a3c3f
...
...
@@ -3607,10 +3607,10 @@ static Sys_var_uint Sys_idle_readonly_transaction_timeout(
VALID_RANGE
(
0
,
IF_WIN
(
INT_MAX32
/
1000
,
LONG_TIMEOUT
)),
DEFAULT
(
0
),
BLOCK_SIZE
(
1
));
static
Sys_var_uint
Sys_idle_
read
write_transaction_timeout
(
"idle_
read
write_transaction_timeout"
,
"The number of seconds the server waits for
read-
write idle transaction"
,
SESSION_VAR
(
idle_
read
write_transaction_timeout
),
CMD_LINE
(
REQUIRED_ARG
),
static
Sys_var_uint
Sys_idle_write_transaction_timeout
(
"idle_write_transaction_timeout"
,
"The number of seconds the server waits for write idle transaction"
,
SESSION_VAR
(
idle_write_transaction_timeout
),
CMD_LINE
(
REQUIRED_ARG
),
VALID_RANGE
(
0
,
IF_WIN
(
INT_MAX32
/
1000
,
LONG_TIMEOUT
)),
DEFAULT
(
0
),
BLOCK_SIZE
(
1
));
...
...
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