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
fa1aef39
Commit
fa1aef39
authored
Dec 23, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.2 into 10.3
parents
097786c4
1eb59c30
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
26 deletions
+22
-26
extra/mariabackup/xtrabackup.cc
extra/mariabackup/xtrabackup.cc
+1
-4
mysql-test/suite/plugins/r/server_audit.result
mysql-test/suite/plugins/r/server_audit.result
+1
-1
plugin/server_audit/server_audit.c
plugin/server_audit/server_audit.c
+4
-4
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+5
-14
storage/innobase/handler/ha_innodb.h
storage/innobase/handler/ha_innodb.h
+0
-3
storage/innobase/srv/srv0start.cc
storage/innobase/srv/srv0start.cc
+11
-0
No files found.
extra/mariabackup/xtrabackup.cc
View file @
fa1aef39
...
...
@@ -6010,12 +6010,9 @@ static bool xtrabackup_prepare_func(char** argv)
srv_shutdown_bg_undo_sources
();
srv_purge_shutdown
();
buf_flush_sync_all_buf_pools
();
innodb_shutdown
();
innobase_space_shutdown
();
}
else
innodb_shutdown
();
innodb_shutdown
();
innodb_free_param
();
/* output to metadata file */
...
...
mysql-test/suite/plugins/r/server_audit.result
View file @
fa1aef39
...
...
@@ -440,8 +440,8 @@ TIME,HOSTNAME,plug,localhost,ID,0,DISCONNECT,,,0
TIME,HOSTNAME,root,localhost,ID,ID,WRITE,mysql,user,
TIME,HOSTNAME,root,localhost,ID,ID,WRITE,mysql,proxies_priv,
TIME,HOSTNAME,root,localhost,ID,ID,QUERY,sa_db,'GRANT PROXY ON plug_dest TO plug',0
TIME,HOSTNAME,plug,localhost,ID,0,PROXY_CONNECT,test,`plug_dest`@`%`,0
TIME,HOSTNAME,plug,localhost,ID,0,CONNECT,test,,0
TIME,HOSTNAME,plug,localhost,ID,0,PROXY_CONNECT,test,`plug_dest`@`%`,0
TIME,HOSTNAME,plug,localhost,ID,0,DISCONNECT,test,,0
TIME,HOSTNAME,root,localhost,ID,ID,WRITE,mysql,user,
TIME,HOSTNAME,root,localhost,ID,ID,WRITE,mysql,db,
...
...
plugin/server_audit/server_audit.c
View file @
fa1aef39
...
...
@@ -2069,13 +2069,9 @@ static void update_connection_info(struct connection_info *cn,
{
case
MYSQL_AUDIT_CONNECTION_CONNECT
:
setup_connection_connect
(
cn
,
event
);
if
(
event
->
status
==
0
&&
event
->
proxy_user
&&
event
->
proxy_user
[
0
])
log_proxy
(
cn
,
event
);
break
;
case
MYSQL_AUDIT_CONNECTION_CHANGE_USER
:
*
after_action
=
AA_CHANGE_USER
;
if
(
event
->
proxy_user
&&
event
->
proxy_user
[
0
])
log_proxy
(
cn
,
event
);
break
;
default:
;
}
...
...
@@ -2193,6 +2189,8 @@ void auditing(MYSQL_THD thd, unsigned int event_class, const void *ev)
{
case
MYSQL_AUDIT_CONNECTION_CONNECT
:
log_connection
(
cn
,
event
,
event
->
status
?
"FAILED_CONNECT"
:
"CONNECT"
);
if
(
event
->
status
==
0
&&
event
->
proxy_user
&&
event
->
proxy_user
[
0
])
log_proxy
(
cn
,
event
);
break
;
case
MYSQL_AUDIT_CONNECTION_DISCONNECT
:
if
(
use_event_data_for_disconnect
)
...
...
@@ -2202,6 +2200,8 @@ void auditing(MYSQL_THD thd, unsigned int event_class, const void *ev)
break
;
case
MYSQL_AUDIT_CONNECTION_CHANGE_USER
:
log_connection
(
cn
,
event
,
"CHANGEUSER"
);
if
(
event
->
proxy_user
&&
event
->
proxy_user
[
0
])
log_proxy
(
cn
,
event
);
break
;
default:
;
}
...
...
storage/innobase/handler/ha_innodb.cc
View file @
fa1aef39
...
...
@@ -3484,10 +3484,12 @@ ha_innobase::init_table_handle_for_HANDLER(void)
reset_template
();
}
/** Free tablespace resources allocated. */
void
innobase_space_shutdown
()
/*********************************************************************//**
Free any resources that were allocated and return failure.
@return always return 1 */
static
int
innodb_init_abort
()
{
DBUG_ENTER
(
"inno
base_space_shutdown
"
);
DBUG_ENTER
(
"inno
db_init_abort
"
);
if
(
fil_system
.
temp_space
)
{
fil_system
.
temp_space
->
close
();
...
...
@@ -3502,16 +3504,6 @@ void innobase_space_shutdown()
#ifdef WITH_INNODB_DISALLOW_WRITES
os_event_destroy
(
srv_allow_writes_event
);
#endif
/* WITH_INNODB_DISALLOW_WRITES */
DBUG_VOID_RETURN
;
}
/** Free any resources that were allocated and return failure.
@return always return 1 */
static
int
innodb_init_abort
()
{
DBUG_ENTER
(
"innodb_init_abort"
);
innobase_space_shutdown
();
DBUG_RETURN
(
1
);
}
...
...
@@ -4322,7 +4314,6 @@ innobase_end(handlerton*, ha_panic_function)
}
innodb_shutdown
();
innobase_space_shutdown
();
mysql_mutex_destroy
(
&
commit_cond_m
);
mysql_cond_destroy
(
&
commit_cond
);
...
...
storage/innobase/handler/ha_innodb.h
View file @
fa1aef39
...
...
@@ -972,6 +972,3 @@ which is in the prepared state
@return 0 or error number */
int
innobase_rollback_by_xid
(
handlerton
*
hton
,
XID
*
xid
);
/** Free tablespace resources allocated. */
void
innobase_space_shutdown
();
storage/innobase/srv/srv0start.cc
View file @
fa1aef39
...
...
@@ -2654,6 +2654,17 @@ void innodb_shutdown()
sync_check_close
();
srv_sys_space
.
shutdown
();
if
(
srv_tmp_space
.
get_sanity_check_status
())
{
fil_system
.
temp_space
->
close
();
srv_tmp_space
.
delete_files
();
}
srv_tmp_space
.
shutdown
();
#ifdef WITH_INNODB_DISALLOW_WRITES
os_event_destroy
(
srv_allow_writes_event
);
#endif
/* WITH_INNODB_DISALLOW_WRITES */
if
(
srv_was_started
&&
srv_print_verbose_log
)
{
ib
::
info
()
<<
"Shutdown completed; log sequence number "
<<
srv_shutdown_lsn
...
...
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