diff options
author | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-04-01 18:25:40 -0400 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@mariadb.com> | 2015-04-01 18:25:40 -0400 |
commit | 575dd775046b7dd53330bcb01b81dceeffeb2e88 (patch) | |
tree | e06f331bd2be8fe13fcb51b6a0633f09098dc393 /sql/wsrep_applier.cc | |
parent | cbc5157feb9801310e458f7ed10983ad478c881e (diff) | |
download | mariadb-git-575dd775046b7dd53330bcb01b81dceeffeb2e88.tar.gz |
MDEV-7867: Add binlog header to GRA_.log file
Diffstat (limited to 'sql/wsrep_applier.cc')
-rw-r--r-- | sql/wsrep_applier.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sql/wsrep_applier.cc b/sql/wsrep_applier.cc index 03d356aa046..789c6b19dd6 100644 --- a/sql/wsrep_applier.cc +++ b/sql/wsrep_applier.cc @@ -14,7 +14,7 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "wsrep_priv.h" -#include "wsrep_binlog.h" // wsrep_dump_rbr_buf() +#include "wsrep_binlog.h" #include "log_event.h" // EVENT_LEN_OFFSET, etc. #include "wsrep_applier.h" @@ -62,8 +62,7 @@ err: #include "rpl_rli.h" // class Relay_log_info; #include "sql_base.h" // close_temporary_table() -static inline void -wsrep_set_apply_format(THD* thd, Format_description_log_event* ev) +void wsrep_set_apply_format(THD* thd, Format_description_log_event* ev) { if (thd->wsrep_apply_format) { @@ -72,8 +71,7 @@ wsrep_set_apply_format(THD* thd, Format_description_log_event* ev) thd->wsrep_apply_format= ev; } -static inline Format_description_log_event* -wsrep_get_apply_format(THD* thd) +Format_description_log_event* wsrep_get_apply_format(THD* thd) { if (thd->wsrep_apply_format) return (Format_description_log_event*) thd->wsrep_apply_format; @@ -260,7 +258,7 @@ wsrep_cb_status_t wsrep_apply_cb(void* const ctx, if (WSREP_CB_SUCCESS != rcode) { - wsrep_dump_rbr_buf(thd, buf, buf_len); + wsrep_dump_rbr_buf_with_header(thd, buf, buf_len); } TABLE *tmp; |