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
38d8b788
Commit
38d8b788
authored
Feb 27, 2020
by
Sachin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup 2
parent
9fc2c269
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
12 deletions
+16
-12
sql/mdl.cc
sql/mdl.cc
+0
-1
sql/mysqld.cc
sql/mysqld.cc
+3
-3
sql/rpl_mi.cc
sql/rpl_mi.cc
+4
-0
sql/rpl_mi.h
sql/rpl_mi.h
+2
-1
sql/sql_cmd.h
sql/sql_cmd.h
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+2
-2
sql/sql_yacc.yy
sql/sql_yacc.yy
+4
-4
No files found.
sql/mdl.cc
View file @
38d8b788
...
...
@@ -2191,7 +2191,6 @@ bool MDL_lock::check_if_conflicting_replication_locks(MDL_context *ctx)
if
(
!
rgi_slave
->
gtid_sub_id
)
return
0
;
return
0
;
while
((
conflicting_ticket
=
it
++
))
{
if
(
conflicting_ticket
->
get_ctx
()
!=
ctx
)
...
...
sql/mysqld.cc
View file @
38d8b788
...
...
@@ -1942,7 +1942,7 @@ static void mysqld_exit(int exit_code)
#ifdef SAFEMALLOC
sf_report_leaked_memory
(
0
);
#endif
//
DBUG_SLOW_ASSERT(global_status_var.global_memory_used == 0);
DBUG_SLOW_ASSERT
(
global_status_var
.
global_memory_used
==
0
);
}
cleanup_tls
();
DBUG_LEAVE
;
...
...
@@ -3343,7 +3343,7 @@ SHOW_VAR com_status_vars[]= {
{
"check"
,
STMT_STATUS
(
SQLCOM_CHECK
)},
{
"checksum"
,
STMT_STATUS
(
SQLCOM_CHECKSUM
)},
{
"commit"
,
STMT_STATUS
(
SQLCOM_COMMIT
)},
{
"commit_
previous"
,
STMT_STATUS
(
SQLCOM_COMMIT_PREVIOUS
)},
{
"commit_
alter"
,
STMT_STATUS
(
SQLCOM_COMMIT_ALTER
)},
{
"compound_sql"
,
STMT_STATUS
(
SQLCOM_COMPOUND
)},
{
"create_db"
,
STMT_STATUS
(
SQLCOM_CREATE_DB
)},
{
"create_event"
,
STMT_STATUS
(
SQLCOM_CREATE_EVENT
)},
...
...
@@ -3416,7 +3416,7 @@ SHOW_VAR com_status_vars[]= {
{
"revoke_role"
,
STMT_STATUS
(
SQLCOM_REVOKE_ROLE
)},
{
"rollback"
,
STMT_STATUS
(
SQLCOM_ROLLBACK
)},
{
"rollback_to_savepoint"
,
STMT_STATUS
(
SQLCOM_ROLLBACK_TO_SAVEPOINT
)},
{
"rollback_
previous"
,
STMT_STATUS
(
SQLCOM_ROLLBACK_PREVIOUS
)},
{
"rollback_
alter"
,
STMT_STATUS
(
SQLCOM_ROLLBACK_ALTER
)},
{
"savepoint"
,
STMT_STATUS
(
SQLCOM_SAVEPOINT
)},
{
"select"
,
STMT_STATUS
(
SQLCOM_SELECT
)},
{
"set_option"
,
STMT_STATUS
(
SQLCOM_SET_OPTION
)},
...
...
sql/rpl_mi.cc
View file @
38d8b788
...
...
@@ -85,6 +85,10 @@ Master_info::Master_info(LEX_CSTRING *connection_name_arg,
mysql_mutex_init
(
key_master_info_data_lock
,
&
data_lock
,
MY_MUTEX_INIT_FAST
);
mysql_mutex_init
(
key_master_info_start_stop_lock
,
&
start_stop_lock
,
MY_MUTEX_INIT_SLOW
);
/*
start_alter_lock will protect individual start_alter_info while
start_alter_list_lock is for list insertion and deletion operations
*/
mysql_mutex_init
(
key_master_info_start_alter_lock
,
&
start_alter_lock
,
MY_MUTEX_INIT_FAST
);
mysql_mutex_init
(
key_master_info_start_alter_list_lock
,
&
start_alter_list_lock
,
...
...
sql/rpl_mi.h
View file @
38d8b788
...
...
@@ -368,9 +368,10 @@ struct start_alter_info
/*
0 prepared and not error from commit and rollback
>0 error expected in commit/rollback
TODO maybe used later ?
*/
uint
error
;
//Seq no of Commit/Rollback
//Seq no of Commit/Rollback
(thread id)
uint64
seq_no
;
enum
start_alter_state
state
;
};
...
...
sql/sql_cmd.h
View file @
38d8b788
...
...
@@ -109,7 +109,7 @@ enum enum_sql_command {
SQLCOM_SHOW_STATUS_PACKAGE_BODY
,
SQLCOM_SHOW_PACKAGE_BODY_CODE
,
SQLCOM_BACKUP
,
SQLCOM_BACKUP_LOCK
,
SQLCOM_START_ALTER_TABLE
,
SQLCOM_COMMIT_
PREVIOUS
,
SQLCOM_ROLLBACK_PREVIOUS
,
SQLCOM_START_ALTER_TABLE
,
SQLCOM_COMMIT_
ALTER
,
SQLCOM_ROLLBACK_ALTER
,
/*
When a command is added here, be sure it's also added in mysqld.cc
...
...
sql/sql_parse.cc
View file @
38d8b788
...
...
@@ -5704,7 +5704,7 @@ mysql_execute_command(THD *thd)
thd
->
transaction
.
start_alter
=
false
;
break
;
}
case
SQLCOM_COMMIT_
PREVIOUS
:
case
SQLCOM_COMMIT_
ALTER
:
{
DBUG_ASSERT
(
thd
->
rgi_slave
);
Master_info
*
mi
=
thd
->
rgi_slave
->
rli
->
mi
;
...
...
@@ -5803,7 +5803,7 @@ mysql_execute_command(THD *thd)
my_ok
(
thd
);
break
;
}
case
SQLCOM_ROLLBACK_
PREVIOUS
:
case
SQLCOM_ROLLBACK_
ALTER
:
{
DBUG_ASSERT
(
thd
->
rgi_slave
);
Master_info
*
mi
=
thd
->
rgi_slave
->
rli
->
mi
;
...
...
sql/sql_yacc.yy
View file @
38d8b788
...
...
@@ -18002,14 +18002,14 @@ commit:
| COMMIT_SYM alter
{
LEX *lex=Lex;
lex->sql_command= SQLCOM_COMMIT_
PREVIOUS
;
lex->sql_command= SQLCOM_COMMIT_
ALTER
;
if (thd->variables.pseudo_thread_id)
lex->previous_commit_id= thd->variables.pseudo_thread_id;
}
| COMMIT_SYM ulonglong_num alter
{
LEX *lex=Lex;
lex->sql_command= SQLCOM_COMMIT_
PREVIOUS
;
lex->sql_command= SQLCOM_COMMIT_
ALTER
;
lex->previous_commit_id= $2;
}
;
...
...
@@ -18039,14 +18039,14 @@ rollback:
| ROLLBACK_SYM alter_table
{
LEX *lex=Lex;
lex->sql_command= SQLCOM_ROLLBACK_
PREVIOUS
;
lex->sql_command= SQLCOM_ROLLBACK_
ALTER
;
if (thd->variables.pseudo_thread_id)
lex->previous_commit_id= thd->variables.pseudo_thread_id;
}
| ROLLBACK_SYM ulonglong_num alter_table
{
LEX *lex=Lex;
lex->sql_command= SQLCOM_ROLLBACK_
PREVIOUS
;
lex->sql_command= SQLCOM_ROLLBACK_
ALTER
;
lex->previous_commit_id= $2;
}
;
...
...
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