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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e69fbd4e
Commit
e69fbd4e
authored
Apr 21, 2015
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fix
parent
3331d4e0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
sql/log.cc
sql/log.cc
+9
-1
sql/wsrep_hton.cc
sql/wsrep_hton.cc
+8
-0
No files found.
sql/log.cc
View file @
e69fbd4e
...
@@ -569,7 +569,15 @@ void thd_binlog_trx_reset(THD * thd)
...
@@ -569,7 +569,15 @@ void thd_binlog_trx_reset(THD * thd)
{
{
binlog_cache_mngr
*
const
cache_mngr
=
binlog_cache_mngr
*
const
cache_mngr
=
(
binlog_cache_mngr
*
)
thd_get_ha_data
(
thd
,
binlog_hton
);
(
binlog_cache_mngr
*
)
thd_get_ha_data
(
thd
,
binlog_hton
);
if
(
cache_mngr
)
cache_mngr
->
reset
(
false
,
true
);
if
(
cache_mngr
)
{
cache_mngr
->
reset
(
false
,
true
);
if
(
!
cache_mngr
->
stmt_cache
.
empty
())
{
WSREP_DEBUG
(
"pending events in stmt cache, sql: %s"
,
thd
->
query
());
cache_mngr
->
stmt_cache
.
reset
();
}
}
}
}
thd
->
clear_binlog_table_maps
();
thd
->
clear_binlog_table_maps
();
}
}
...
...
sql/wsrep_hton.cc
View file @
e69fbd4e
...
@@ -99,6 +99,14 @@ void wsrep_register_hton(THD* thd, bool all)
...
@@ -99,6 +99,14 @@ void wsrep_register_hton(THD* thd, bool all)
*/
*/
void
wsrep_post_commit
(
THD
*
thd
,
bool
all
)
void
wsrep_post_commit
(
THD
*
thd
,
bool
all
)
{
{
/*
TODO: It can perhaps be fixed in a more elegant fashion by turning off
wsrep_emulate_binlog if wsrep_on=0 on server start.
https://github.com/codership/mysql-wsrep/issues/112
*/
if
(
!
WSREP_ON
)
return
;
switch
(
thd
->
wsrep_exec_mode
)
switch
(
thd
->
wsrep_exec_mode
)
{
{
case
LOCAL_COMMIT
:
case
LOCAL_COMMIT
:
...
...
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