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
33366b10
Commit
33366b10
authored
Feb 22, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove @@system_versioning_innodb_algorithm_simple
and delete few garbage-in-garbage-out tests
parent
b9c70b88
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
11 additions
and
103 deletions
+11
-103
mysql-test/r/mysqld--help,win.rdiff
mysql-test/r/mysqld--help,win.rdiff
+10
-10
mysql-test/r/mysqld--help.result
mysql-test/r/mysqld--help.result
+0
-5
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
+0
-14
mysql-test/suite/sys_vars/r/sysvars_server_notembedded.result
...l-test/suite/sys_vars/r/sysvars_server_notembedded.result
+0
-14
mysql-test/suite/versioning/r/select.result
mysql-test/suite/versioning/r/select.result
+0
-11
mysql-test/suite/versioning/r/trx_id.result
mysql-test/suite/versioning/r/trx_id.result
+0
-26
mysql-test/suite/versioning/t/select.test
mysql-test/suite/versioning/t/select.test
+0
-5
mysql-test/suite/versioning/t/trx_id.test
mysql-test/suite/versioning/t/trx_id.test
+0
-9
sql/sql_class.h
sql/sql_class.h
+0
-1
sql/sql_select.cc
sql/sql_select.cc
+1
-2
sql/sys_vars.cc
sql/sys_vars.cc
+0
-6
No files found.
mysql-test/r/mysqld--help,win.rdiff
View file @
33366b10
...
...
@@ -38,14 +38,14 @@
--sort-buffer-size=#
Each thread that needs to do a sort allocates a buffer of
@@ -1190,6 +1197,7 @@
The following options may be given as the first argument:
EMPTY_STRING_IS_NULL
EMPTY_STRING_IS_NULL
, SIMULTANEOUS_ASSIGNMENT
--stack-trace Print a symbolic stack trace on failure
(Defaults to on; use --skip-stack-trace to disable.)
+ --standalone Dummy option to start as a standalone program (NT).
--standard-compliant-cte
Allow only CTEs compliant to SQL standard
(Defaults to on; use --skip-standard-compliant-cte to disable.)
@@ -12
61,6 +1269
,11 @@
The following options may be given as the first argument:
@@ -12
57,6 +1265
,11 @@
The following options may be given as the first argument:
--thread-pool-max-threads=#
Maximum allowed number of worker threads in the thread
pool
...
...
@@ -57,7 +57,7 @@
--thread-pool-oversubscribe=#
How many additional active worker threads in a group are
allowed.
@@ -129
9,8 +1312
,8 @@
The following options may be given as the first argument:
@@ -129
5,8 +1308
,8 @@
The following options may be given as the first argument:
automatically convert it to an on-disk MyISAM or Aria
table.
-t, --tmpdir=name Path for temporary files. Several paths may be specified,
...
...
@@ -68,7 +68,7 @@
--transaction-alloc-block-size=#
Allocation block size for transactions to be stored in
binary log
@@ -143
4,7 +1447
,6 @@
key-cache-block-size 1024
@@ -143
0,7 +1443
,6 @@
key-cache-block-size 1024
key-cache-division-limit 100
key-cache-file-hash-size 512
key-cache-segments 0
...
...
@@ -76,7 +76,7 @@
lc-messages en_US
lc-messages-dir MYSQL_SHAREDIR/
lc-time-names en_US
@@ -150
6,6 +1518
,7 @@
myisam-sort-buffer-size 134216704
@@ -150
2,6 +1514
,7 @@
myisam-sort-buffer-size 134216704
myisam-stats-method NULLS_UNEQUAL
myisam-use-mmap FALSE
mysql56-temporal-format TRUE
...
...
@@ -84,7 +84,7 @@
net-buffer-length 16384
net-read-timeout 30
net-retry-count 10
@@ -161
6,6 +1629
,8 @@
session-track-schema TRUE
@@ -161
2,6 +1625
,8 @@
session-track-schema TRUE
session-track-state-change FALSE
session-track-system-variables autocommit,character_set_client,character_set_connection,character_set_results,time_zone
session-track-transaction-info OFF
...
...
@@ -93,7 +93,7 @@
show-slave-auth-info FALSE
silent-startup FALSE
skip-grant-tables TRUE
@@ -16
42,6 +1657
,7 @@
slave-transaction-retry-interval 0
@@ -16
38,6 +1653
,7 @@
slave-transaction-retry-interval 0
slave-type-conversions
slow-launch-time 2
slow-query-log FALSE
...
...
@@ -101,10 +101,10 @@
sort-buffer-size 2097152
sql-mode STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
stack-trace TRUE
@@ -1657,9 +1673,9 @@
sync-relay-log-info 10000
@@ -1652,9 +1668,9 @@
sync-relay-log 10000
sync-relay-log-info 10000
sysdate-is-now FALSE
system-versioning-alter-history ERROR
system-versioning-innodb-algorithm-simple TRUE
-table-cache 431
+table-cache 2000
table-definition-cache 400
...
...
@@ -113,7 +113,7 @@
table-open-cache-instances 8
tc-heuristic-recover OFF
tcp-keepalive-interval 0
@@ -166
8,6 +1684
,8 @@
tcp-keepalive-time 0
@@ -166
3,6 +1679
,8 @@
tcp-keepalive-time 0
thread-cache-size 151
thread-pool-idle-timeout 60
thread-pool-max-threads 65536
...
...
mysql-test/r/mysqld--help.result
View file @
33366b10
...
...
@@ -1223,10 +1223,6 @@ The following options may be given as the first argument:
Versioning ALTER TABLE mode. ERROR: Fail ALTER with
error; KEEP: Keep historical system rows and subject them
to ALTER;
--system-versioning-innodb-algorithm-simple
Use simple algorithm of timestamp handling in InnoDB
instead of TRX_SEES
(Defaults to on; use --skip-system-versioning-innodb-algorithm-simple to disable.)
--table-cache=# Deprecated; use --table-open-cache instead.
--table-definition-cache=#
The number of cached table definitions
...
...
@@ -1656,7 +1652,6 @@ sync-relay-log 10000
sync-relay-log-info 10000
sysdate-is-now FALSE
system-versioning-alter-history ERROR
system-versioning-innodb-algorithm-simple TRUE
table-cache 431
table-definition-cache 400
table-open-cache 431
...
...
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
View file @
33366b10
...
...
@@ -4086,20 +4086,6 @@ NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST DEFAULT
READ_ONLY NO
COMMAND_LINE_ARGUMENT NULL
VARIABLE_NAME SYSTEM_VERSIONING_INNODB_ALGORITHM_SIMPLE
SESSION_VALUE ON
GLOBAL_VALUE ON
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE ON
VARIABLE_SCOPE SESSION
VARIABLE_TYPE BOOLEAN
VARIABLE_COMMENT Use simple algorithm of timestamp handling in InnoDB instead of TRX_SEES
NUMERIC_MIN_VALUE NULL
NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST OFF,ON
READ_ONLY NO
COMMAND_LINE_ARGUMENT OPTIONAL
VARIABLE_NAME TABLE_DEFINITION_CACHE
SESSION_VALUE NULL
GLOBAL_VALUE 400
...
...
mysql-test/suite/sys_vars/r/sysvars_server_notembedded.result
View file @
33366b10
...
...
@@ -5038,20 +5038,6 @@ NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST DEFAULT
READ_ONLY NO
COMMAND_LINE_ARGUMENT NULL
VARIABLE_NAME SYSTEM_VERSIONING_INNODB_ALGORITHM_SIMPLE
SESSION_VALUE ON
GLOBAL_VALUE ON
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE ON
VARIABLE_SCOPE SESSION
VARIABLE_TYPE BOOLEAN
VARIABLE_COMMENT Use simple algorithm of timestamp handling in InnoDB instead of TRX_SEES
NUMERIC_MIN_VALUE NULL
NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST OFF,ON
READ_ONLY NO
COMMAND_LINE_ARGUMENT OPTIONAL
VARIABLE_NAME TABLE_DEFINITION_CACHE
SESSION_VALUE NULL
GLOBAL_VALUE 400
...
...
mysql-test/suite/versioning/r/select.result
View file @
33366b10
...
...
@@ -330,25 +330,14 @@ trx_start_good
select x from t1 for system_time as of timestamp @ts;
x
1
select x from t1 for system_time as of timestamp unix_timestamp(@ts);
x
1
select x from t1 for system_time as of timestamp @trx_start;
x
set @ts= timestamp'1-1-1 0:0:0';
## TRANSACTION specifier
select x from t1 for system_time as of transaction @ts;
x
select x from t1 for system_time as of transaction unix_timestamp(@ts);
x
select x from t1 for system_time as of transaction @trx_start;
x
1
## no specifier (auto-detection)
select x from t1 for system_time as of @ts;
x
select x from t1 for system_time as of unix_timestamp(@ts);
x
select x from t1 for system_time as of @trx_start;
x
1
...
...
mysql-test/suite/versioning/r/trx_id.result
View file @
33366b10
...
...
@@ -103,32 +103,6 @@ select @trx_id1 < @trx_id2, @trx_id2 < @trx_id3;
select @ts1 < @ts2, @ts2 < @ts3;
@ts1 < @ts2 @ts2 < @ts3
1 1
# MVCC is not resolved
select * from t1 for system_time as of transaction @trx_id1;
x
1
select * from t1 for system_time as of timestamp @ts1;
x
3
select * from t1 for system_time as of transaction @trx_id2;
x
1
2
select * from t1 for system_time as of timestamp @ts2;
x
2
3
select * from t1 for system_time as of transaction @trx_id3;
x
1
2
3
select * from t1 for system_time as of timestamp @ts3;
x
1
2
3
set system_versioning_innodb_algorithm_simple= off;
# MVCC is resolved
select * from t1 for system_time as of transaction @trx_id1;
x
...
...
mysql-test/suite/versioning/t/select.test
View file @
33366b10
...
...
@@ -216,19 +216,14 @@ select @trx_start < unix_timestamp(@ts) - 100 as trx_start_good;
--
echo
## TIMESTAMP specifier
select
x
from
t1
for
system_time
as
of
timestamp
@
ts
;
select
x
from
t1
for
system_time
as
of
timestamp
unix_timestamp
(
@
ts
);
select
x
from
t1
for
system_time
as
of
timestamp
@
trx_start
;
set
@
ts
=
timestamp
'1-1-1 0:0:0'
;
--
echo
## TRANSACTION specifier
select
x
from
t1
for
system_time
as
of
transaction
@
ts
;
select
x
from
t1
for
system_time
as
of
transaction
unix_timestamp
(
@
ts
);
select
x
from
t1
for
system_time
as
of
transaction
@
trx_start
;
--
echo
## no specifier (auto-detection)
select
x
from
t1
for
system_time
as
of
@
ts
;
select
x
from
t1
for
system_time
as
of
unix_timestamp
(
@
ts
);
select
x
from
t1
for
system_time
as
of
@
trx_start
;
...
...
mysql-test/suite/versioning/t/trx_id.test
View file @
33366b10
...
...
@@ -108,15 +108,6 @@ select sys_start from t1 where x = 3 into @trx_id3;
select
@
trx_id1
<
@
trx_id2
,
@
trx_id2
<
@
trx_id3
;
select
@
ts1
<
@
ts2
,
@
ts2
<
@
ts3
;
--
echo
# MVCC is not resolved
select
*
from
t1
for
system_time
as
of
transaction
@
trx_id1
;
select
*
from
t1
for
system_time
as
of
timestamp
@
ts1
;
select
*
from
t1
for
system_time
as
of
transaction
@
trx_id2
;
select
*
from
t1
for
system_time
as
of
timestamp
@
ts2
;
select
*
from
t1
for
system_time
as
of
transaction
@
trx_id3
;
select
*
from
t1
for
system_time
as
of
timestamp
@
ts3
;
set
system_versioning_innodb_algorithm_simple
=
off
;
--
echo
# MVCC is resolved
select
*
from
t1
for
system_time
as
of
transaction
@
trx_id1
;
select
*
from
t1
for
system_time
as
of
timestamp
@
ts1
;
...
...
sql/sql_class.h
View file @
33366b10
...
...
@@ -726,7 +726,6 @@ typedef struct system_variables
uint
in_subquery_conversion_threshold
;
vers_asof_timestamp_t
vers_asof_timestamp
;
my_bool
vers_innodb_algorithm_simple
;
ulong
vers_alter_history
;
}
SV
;
...
...
sql/sql_select.cc
View file @
33366b10
...
...
@@ -865,8 +865,7 @@ int SELECT_LEX::vers_setup_conds(THD *thd, TABLE_LIST *tables, COND **where_expr
// have uint64 type of sys_trx_(start|end) field.
// They need special handling.
TABLE
*
t
=
table
->
table
;
if
(
t
->
versioned
(
VERS_TIMESTAMP
)
||
thd
->
variables
.
vers_innodb_algorithm_simple
)
if
(
t
->
versioned
(
VERS_TIMESTAMP
))
{
if
(
vers_conditions
)
{
...
...
sql/sys_vars.cc
View file @
33366b10
...
...
@@ -396,12 +396,6 @@ static Sys_var_vers_asof Sys_vers_asof_timestamp(
SESSION_VAR
(
vers_asof_timestamp
.
type
),
NO_CMD_LINE
,
Sys_var_vers_asof
::
asof_keywords
,
DEFAULT
(
SYSTEM_TIME_UNSPECIFIED
));
static
Sys_var_mybool
Sys_vers_innodb_algorithm_simple
(
"system_versioning_innodb_algorithm_simple"
,
"Use simple algorithm of timestamp handling in InnoDB instead of TRX_SEES"
,
SESSION_VAR
(
vers_innodb_algorithm_simple
),
CMD_LINE
(
OPT_ARG
),
DEFAULT
(
TRUE
));
static
const
char
*
vers_alter_history_keywords
[]
=
{
"ERROR"
,
"KEEP"
,
/* "SURVIVE", "DROP",*/
NULL
};
static
Sys_var_enum
Sys_vers_alter_history
(
"system_versioning_alter_history"
,
"Versioning ALTER TABLE mode. "
...
...
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