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
a6246cab
Commit
a6246cab
authored
Sep 03, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix failures of innodb_plugin tests in --embedded
Post-fix for
7e8ed15b
Also, apply the same innodb fix to xtradb.
parent
c2727547
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
4 deletions
+14
-4
include/mysql/service_wsrep.h
include/mysql/service_wsrep.h
+3
-0
include/service_versions.h
include/service_versions.h
+1
-1
sql/sql_plugin_services.ic
sql/sql_plugin_services.ic
+2
-1
sql/wsrep_dummy.cc
sql/wsrep_dummy.cc
+3
-0
sql/wsrep_mysqld.h
sql/wsrep_mysqld.h
+0
-1
sql/wsrep_sst.cc
sql/wsrep_sst.cc
+0
-1
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+5
-0
No files found.
include/mysql/service_wsrep.h
View file @
a6246cab
...
...
@@ -110,6 +110,7 @@ extern struct wsrep_service_st {
int
(
*
wsrep_trx_is_aborting_func
)(
MYSQL_THD
thd
);
int
(
*
wsrep_trx_order_before_func
)(
MYSQL_THD
,
MYSQL_THD
);
void
(
*
wsrep_unlock_rollback_func
)();
void
(
*
wsrep_set_data_home_dir_func
)(
const
char
*
data_dir
);
}
*
wsrep_service
;
#ifdef MYSQL_DYNAMIC_PLUGIN
...
...
@@ -151,6 +152,7 @@ extern struct wsrep_service_st {
#define wsrep_trx_is_aborting(T) wsrep_service->wsrep_trx_is_aborting_func(T)
#define wsrep_trx_order_before(T1,T2) wsrep_service->wsrep_trx_order_before_func(T1,T2)
#define wsrep_unlock_rollback() wsrep_service->wsrep_unlock_rollback_func()
#define wsrep_set_data_home_dir(A) wsrep_service->wsrep_set_data_home_dir_func(A)
#define wsrep_debug get_wsrep_debug()
#define wsrep_log_conflicts get_wsrep_log_conflicts()
...
...
@@ -208,6 +210,7 @@ void wsrep_thd_awake(THD *thd, my_bool signal);
void
wsrep_thd_set_conflict_state
(
THD
*
thd
,
enum
wsrep_conflict_state
state
);
bool
wsrep_thd_ignore_table
(
THD
*
thd
);
void
wsrep_unlock_rollback
();
void
wsrep_set_data_home_dir
(
const
char
*
data_dir
);
#endif
...
...
include/service_versions.h
View file @
a6246cab
...
...
@@ -41,4 +41,4 @@
#define VERSION_thd_specifics 0x0100
#define VERSION_thd_timezone 0x0100
#define VERSION_thd_wait 0x0100
#define VERSION_wsrep 0x020
1
#define VERSION_wsrep 0x020
2
sql/sql_plugin_services.ic
View file @
a6246cab
...
...
@@ -179,7 +179,8 @@ static struct wsrep_service_st wsrep_handler = {
wsrep_thd_ws_handle,
wsrep_trx_is_aborting,
wsrep_trx_order_before,
wsrep_unlock_rollback
wsrep_unlock_rollback,
wsrep_set_data_home_dir
};
static struct thd_specifics_service_st thd_specifics_handler=
...
...
sql/wsrep_dummy.cc
View file @
a6246cab
...
...
@@ -130,3 +130,6 @@ int wsrep_trx_is_aborting(THD *)
void
wsrep_unlock_rollback
()
{
}
void
wsrep_set_data_home_dir
(
const
char
*
)
{
}
sql/wsrep_mysqld.h
View file @
a6246cab
...
...
@@ -160,7 +160,6 @@ extern "C" time_t wsrep_thd_query_start(THD *thd);
extern
"C"
query_id_t
wsrep_thd_query_id
(
THD
*
thd
);
extern
"C"
query_id_t
wsrep_thd_wsrep_last_query_id
(
THD
*
thd
);
extern
"C"
void
wsrep_thd_set_wsrep_last_query_id
(
THD
*
thd
,
query_id_t
id
);
extern
"C"
void
wsrep_set_data_home_dir
(
const
char
*
data_dir
);
extern
void
wsrep_close_client_connections
(
my_bool
wait_to_end
);
extern
int
wsrep_wait_committing_connections_close
(
int
wait_time
);
...
...
sql/wsrep_sst.cc
View file @
a6246cab
...
...
@@ -70,7 +70,6 @@ bool wsrep_sst_method_update (sys_var *self, THD* thd, enum_var_type type)
static
const
char
*
data_home_dir
=
NULL
;
extern
"C"
void
wsrep_set_data_home_dir
(
const
char
*
data_dir
)
{
data_home_dir
=
(
data_dir
&&
*
data_dir
)
?
data_dir
:
NULL
;
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
a6246cab
...
...
@@ -4072,6 +4072,11 @@ innobase_init(
srv_data_home
=
(
innobase_data_home_dir
?
innobase_data_home_dir
:
default_path
);
#ifdef WITH_WSREP
/* If we use the wsrep API, then we need to tell the server
the path to the data files (for passing it to the SST scripts): */
wsrep_set_data_home_dir
(
innobase_data_home_dir
);
#endif
/* WITH_WSREP */
/* Set default InnoDB data file size to 12 MB and let it be
auto-extending. Thus users can use InnoDB in >= 4.0 without having
...
...
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