1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-15530: Variable replicate_rewrite_db cannot be found in "show global variables"

- Add `replicate_rewrite_db` status variable, that may accept comma
separated key-value pairs.
- Note that option `OPT_REPLICATE_REWRITE_DB` already existed in `mysqld.h`
  from this commit 23d8586dbf

Reviewer:Brandon Nesterenko <brandon.nesterenko@mariadb.com>
This commit is contained in:
Anel Husakovic
2022-08-09 13:50:12 +02:00
committed by Brandon Nesterenko
parent ccf0e27f28
commit 1a057a923b
30 changed files with 936 additions and 141 deletions

View File

@@ -1024,10 +1024,12 @@ void copy_filter_setting(Rpl_filter* dst_filter, Rpl_filter* src_filter)
dst_filter->set_wild_ignore_table(tmp.ptr());
}
if (dst_filter->rewrite_db_is_empty())
dst_filter->get_rewrite_db(&tmp);
if (tmp.is_empty())
{
if (!src_filter->rewrite_db_is_empty())
dst_filter->copy_rewrite_db(src_filter);
src_filter->get_rewrite_db(&tmp);
if (!tmp.is_empty())
dst_filter->set_rewrite_db(tmp.ptr());
}
}