mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
WL#2472: Refactoring of replication and binlog filtering.
Needed to be able to have multiple masters connected to same slave server with different filters.
This commit is contained in:
@ -19,8 +19,11 @@
|
||||
|
||||
#include "sql_repl.h"
|
||||
#include "log_event.h"
|
||||
#include "table_filter.h"
|
||||
#include <my_dir.h>
|
||||
|
||||
extern Table_filter *binlog_filter;
|
||||
|
||||
int max_binlog_dump_events = 0; // unlimited
|
||||
my_bool opt_sporadic_binlog_dump_fail = 0;
|
||||
static int binlog_dump_count = 0;
|
||||
@ -1442,8 +1445,8 @@ bool show_binlog_info(THD* thd)
|
||||
int dir_len = dirname_length(li.log_file_name);
|
||||
protocol->store(li.log_file_name + dir_len, &my_charset_bin);
|
||||
protocol->store((ulonglong) li.pos);
|
||||
protocol->store(&binlog_do_db);
|
||||
protocol->store(&binlog_ignore_db);
|
||||
protocol->store(binlog_filter->get_do_db());
|
||||
protocol->store(binlog_filter->get_ignore_db());
|
||||
if (protocol->write())
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user