summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorLixun Peng <P.Linux@163.com>2013-04-16 19:43:28 +0800
committerLixun Peng <P.Linux@163.com>2013-04-16 19:43:28 +0800
commit82eedf4e9745aa570b88b225941120475f9f74c9 (patch)
treec88a6bcc7efd700de4e64af88edb7e3d02f9dd1b /libmysqld
parentaa052eeb1a020b8a198e892a7ca0d8f4a3bcd5f1 (diff)
downloadmariadb-git-82eedf4e9745aa570b88b225941120475f9f74c9.tar.gz
Makeing rpl_filter for each Master_info.
Users can set different repplication filter rules for each replication connection, in my.cnf or command line. But the rules set online will not record in master.info, it means if users restart MySQL, these rules will lose. So if users wantn't their replication filter rules lose, they should write the rules in my.cnf. Users can set rules by 2 ways: 1. Online SET command, "SET connection_name.replication_filter_settings = rules;". 2. In my.cnf, "connection_name.replication_filter_settings = rules". If no connection_name in my.cnf, this rule will apply for ALL replication connection. If no connetion_name in SET statement, this rull will apply for default_connection_name.
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 5e798674c2d..16c6cc94f1b 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -604,7 +604,7 @@ int init_embedded_server(int argc, char **argv, char **groups)
// FIXME initialize binlog_filter and rpl_filter if not already done
// corresponding delete is in clean_up()
if(!binlog_filter) binlog_filter = new Rpl_filter;
- if(!rpl_filter) rpl_filter = new Rpl_filter;
+ if(!global_rpl_filter) global_rpl_filter = new Rpl_filter;
if (opt_init_file)
{