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
595bcb79
Commit
595bcb79
authored
Sep 10, 2014
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix merge error on binlog_remove_pending_rows causing failure
on binlog_innodb_row test.
parent
b67e1d3c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
22 deletions
+14
-22
sql/log.h
sql/log.h
+8
-1
sql/mysqld.cc
sql/mysqld.cc
+4
-19
sql/sql_class.cc
sql/sql_class.cc
+2
-2
No files found.
sql/log.h
View file @
595bcb79
...
...
@@ -1083,6 +1083,13 @@ end:
DBUG_RETURN
(
error
);
}
static
inline
TC_LOG
*
get_tc_log_implementation
()
{
if
(
total_ha_2pc
<=
1
)
return
&
tc_log_dummy
;
if
(
opt_bin_log
)
return
&
mysql_bin_log
;
return
&
tc_log_mmap
;
}
#endif
/* LOG_H */
sql/mysqld.cc
View file @
595bcb79
...
...
@@ -5204,27 +5204,12 @@ a file name for --log-bin-index option", opt_binlog_index_name);
}
#endif
/* if total_ha_2pc <= 1
tc_log = tc_log_dummy
else
if opt_bin_log == true
tc_log = mysql_bin_log
else
if WITH_WSREP
if WSREP_ON
tc_log = tc_log_dummy
else
tc_log = tc_log_mmap
else
tc_log=tc_log_mmap
*/
tc_log
=
(
total_ha_2pc
>
1
?
(
opt_bin_log
?
(
TC_LOG
*
)
&
mysql_bin_log
:
IF_WSREP
((
WSREP_ON
?
(
TC_LOG
*
)
&
tc_log_dummy
:
(
TC_LOG
*
)
&
tc_log_mmap
),
(
TC_LOG
*
)
&
tc_log_mmap
))
:
(
TC_LOG
*
)
&
tc_log_dummy
);
tc_log
=
get_tc_log_implementation
();
#ifdef WITH_WSREP
if
(
WSREP_ON
&&
tc_log
==
&
tc_log_mmap
)
tc_log
=
&
tc_log_dummy
;
WSREP_DEBUG
(
"Initial TC log open: %s"
,
(
tc_log
==
&
mysql_bin_log
)
?
"binlog"
:
(
tc_log
==
&
tc_log_mmap
)
?
"mmap"
:
...
...
sql/sql_class.cc
View file @
595bcb79
...
...
@@ -5793,8 +5793,8 @@ int THD::binlog_remove_pending_rows_event(bool clear_maps,
{
DBUG_ENTER
(
"THD::binlog_remove_pending_rows_event"
);
IF_WSREP
(
!
(
WSREP_EMULATE_BINLOG
(
this
)
||
mysql_bin_log
.
is_open
()),
!
mysql_bin_log
.
is_open
());
if
(
IF_WSREP
(
!
(
WSREP_EMULATE_BINLOG
(
this
)
||
mysql_bin_log
.
is_open
()),
!
mysql_bin_log
.
is_open
()))
DBUG_RETURN
(
0
);
/* Ensure that all events in a GTID group are in the same cache */
...
...
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