[MDEV-8891] Slave replication filters do not work as excepted Created: 2015-10-03 Updated: 2015-10-09 Resolved: 2015-10-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.0.21 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Vitaliy Margolen | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
OpenSuSE 13.2 |
||
| Description |
|
Have a replication slave setup with following configuration:
The intention is to replicate only one specific schema but renaming it (from APPLICATION to APPLICATION_QA). However need to filter some tables. In the example above its %_tmp, %_old, %upload. The problem: all tables from master's APPLICATION schema are being replicated. |
| Comments |
| Comment by Elena Stepanova [ 2015-10-09 ] |
|
It appears you are misusing the options. Second, even regardless the replacement, using both replicate-wild-do- and replicate-wild-ignore- is an overuse that defeats the purpose. According to the diagram for this options, do has precedence, and if your tables match the pattern, ignore won't be applied at all. But you don't need do, if you make it match ALL tables in the schema; you would want the database-level options instead. |