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
f39df037
Commit
f39df037
authored
Nov 15, 2017
by
Aleksey Midenkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Daemon: TRT check respects --transaction-registry [#302]
parent
3fc943cd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
7 deletions
+7
-7
sql/handler.cc
sql/handler.cc
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+2
-2
sql/mysqld.h
sql/mysqld.h
+1
-1
sql/sql_table.cc
sql/sql_table.cc
+1
-1
sql/sys_vars.cc
sql/sys_vars.cc
+1
-1
sql/vtmd.cc
sql/vtmd.cc
+1
-1
No files found.
sql/handler.cc
View file @
f39df037
...
...
@@ -1419,7 +1419,7 @@ int ha_commit_trans(THD *thd, bool all)
for
(
Ha_trx_info
*
hi
=
ha_info
;
hi
;
hi
=
hi
->
next
())
{
handlerton
*
ht
=
hi
->
ht
();
if
(
transaction_registry
&&
if
(
opt_
transaction_registry
&&
(
ht
->
flags
&
HTON_NATIVE_SYS_VERSIONING
)
&&
(
thd
->
lex
->
sql_command
==
SQLCOM_ALTER_TABLE
?
hi
->
is_trx_tmp_read_write
()
:
...
...
sql/mysqld.cc
View file @
f39df037
...
...
@@ -534,7 +534,7 @@ ulonglong slave_skipped_errors;
ulong
feature_files_opened_with_delayed_keys
=
0
,
feature_check_constraint
=
0
;
ulonglong
denied_connections
;
my_decimal
decimal_zero
;
my_bool
transaction_registry
=
1
;
my_bool
opt_
transaction_registry
=
1
;
/*
Maximum length of parameter value which can be set through
...
...
@@ -6027,7 +6027,7 @@ int mysqld_main(int argc, char **argv)
if
(
Events
::
init
((
THD
*
)
0
,
opt_noacl
||
opt_bootstrap
))
unireg_abort
(
1
);
if
(
!
opt_bootstrap
)
if
(
!
opt_bootstrap
&&
opt_transaction_registry
)
{
THD
*
thd
=
new
THD
(
0
);
thd
->
thread_stack
=
(
char
*
)
&
thd
;
...
...
sql/mysqld.h
View file @
f39df037
...
...
@@ -312,7 +312,7 @@ extern my_bool encrypt_tmp_disk_tables, encrypt_tmp_files;
extern
ulong
encryption_algorithm
;
extern
const
char
*
encryption_algorithm_names
[];
extern
const
char
*
quoted_string
;
extern
my_bool
transaction_registry
;
extern
my_bool
opt_
transaction_registry
;
#ifdef HAVE_PSI_INTERFACE
#ifdef HAVE_MMAP
...
...
sql/sql_table.cc
View file @
f39df037
...
...
@@ -7432,7 +7432,7 @@ static bool mysql_inplace_alter_table(THD *thd,
TR_table
trt
(
thd
,
true
);
if
(
table
->
file
->
native_versioned
())
{
if
(
transaction_registry
&&
trt
.
update
())
if
(
opt_
transaction_registry
&&
trt
.
update
())
return
true
;
}
...
...
sql/sys_vars.cc
View file @
f39df037
...
...
@@ -425,7 +425,7 @@ static Sys_var_enum Sys_vers_alter_history(
static
Sys_var_mybool
Sys_transaction_registry
(
"transaction_registry"
,
"Enable or disable update of transaction_registry"
,
GLOBAL_VAR
(
transaction_registry
),
CMD_LINE
(
OPT_ARG
),
GLOBAL_VAR
(
opt_
transaction_registry
),
CMD_LINE
(
OPT_ARG
),
DEFAULT
(
TRUE
));
static
Sys_var_ulonglong
Sys_binlog_cache_size
(
...
...
sql/vtmd.cc
View file @
f39df037
...
...
@@ -255,7 +255,7 @@ VTMD_table::update(THD *thd, const char* archive_name)
}
quit:
if
(
!
result
&&
transaction_registry
)
if
(
!
result
&&
opt_
transaction_registry
)
{
TR_table
trt
(
thd
,
true
);
result
=
trt
.
update
();
...
...
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