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
7f9fcfe0
Commit
7f9fcfe0
authored
Jun 27, 2016
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup (wsrep patch).
parent
47e4e5df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
sql/wsrep_mysqld.cc
sql/wsrep_mysqld.cc
+7
-3
sql/wsrep_mysqld.h
sql/wsrep_mysqld.h
+0
-5
No files found.
sql/wsrep_mysqld.cc
View file @
7f9fcfe0
...
...
@@ -1260,7 +1260,7 @@ wsrep_alter_query_string(THD *thd, String *buf)
return
0
;
}
int
wsrep_alter_event_query
(
THD
*
thd
,
uchar
**
buf
,
size_t
*
buf_len
)
static
int
wsrep_alter_event_query
(
THD
*
thd
,
uchar
**
buf
,
size_t
*
buf_len
)
{
String
log_query
;
...
...
@@ -1356,6 +1356,10 @@ create_view_query(THD *thd, uchar** buf, size_t* buf_len)
return
wsrep_to_buf_helper
(
thd
,
buff
.
ptr
(),
buff
.
length
(),
buf
,
buf_len
);
}
/* Forward declarations. */
static
int
wsrep_create_sp
(
THD
*
thd
,
uchar
**
buf
,
size_t
*
buf_len
);
static
int
wsrep_create_trigger_query
(
THD
*
thd
,
uchar
**
buf
,
size_t
*
buf_len
);
/*
returns:
0: statement was replicated as TOI
...
...
@@ -2167,7 +2171,7 @@ void wsrep_kill_mysql(THD *thd)
}
int
wsrep_create_sp
(
THD
*
thd
,
uchar
**
buf
,
size_t
*
buf_len
)
static
int
wsrep_create_sp
(
THD
*
thd
,
uchar
**
buf
,
size_t
*
buf_len
)
{
String
log_query
;
sp_head
*
sp
=
thd
->
lex
->
sphead
;
...
...
@@ -2494,7 +2498,7 @@ bool wsrep_create_like_table(THD* thd, TABLE_LIST* table,
}
int
wsrep_create_trigger_query
(
THD
*
thd
,
uchar
**
buf
,
size_t
*
buf_len
)
static
int
wsrep_create_trigger_query
(
THD
*
thd
,
uchar
**
buf
,
size_t
*
buf_len
)
{
LEX
*
lex
=
thd
->
lex
;
String
stmt_query
;
...
...
sql/wsrep_mysqld.h
View file @
7f9fcfe0
...
...
@@ -280,10 +280,7 @@ void wsrep_to_isolation_end(THD *thd);
void
wsrep_cleanup_transaction
(
THD
*
thd
);
int
wsrep_to_buf_helper
(
THD
*
thd
,
const
char
*
query
,
uint
query_len
,
uchar
**
buf
,
size_t
*
buf_len
);
int
wsrep_create_sp
(
THD
*
thd
,
uchar
**
buf
,
size_t
*
buf_len
);
int
wsrep_create_trigger_query
(
THD
*
thd
,
uchar
**
buf
,
size_t
*
buf_len
);
int
wsrep_create_event_query
(
THD
*
thd
,
uchar
**
buf
,
size_t
*
buf_len
);
int
wsrep_alter_event_query
(
THD
*
thd
,
uchar
**
buf
,
size_t
*
buf_len
);
extern
bool
wsrep_grant_mdl_exception
(
MDL_context
*
requestor_ctx
,
...
...
@@ -304,14 +301,12 @@ void wsrep_close_applier_threads(int count);
void
wsrep_wait_appliers_close
(
THD
*
thd
);
void
wsrep_kill_mysql
(
THD
*
thd
);
void
wsrep_close_threads
(
THD
*
thd
);
int
wsrep_create_sp
(
THD
*
thd
,
uchar
**
buf
,
size_t
*
buf_len
);
void
wsrep_copy_query
(
THD
*
thd
);
bool
wsrep_is_show_query
(
enum
enum_sql_command
command
);
void
wsrep_replay_transaction
(
THD
*
thd
);
bool
wsrep_create_like_table
(
THD
*
thd
,
TABLE_LIST
*
table
,
TABLE_LIST
*
src_table
,
HA_CREATE_INFO
*
create_info
);
int
wsrep_create_trigger_query
(
THD
*
thd
,
uchar
**
buf
,
size_t
*
buf_len
);
#else
/* WITH_WSREP */
...
...
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