Permalink
Browse files

Add filter.matches to tableMapCache

  • Loading branch information...
seanlook committed Dec 25, 2017
1 parent 4acddf4 commit 2618b70303078bf910a1981b69943cca75ee04fb
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/main/java/com/zendesk/maxwell/replication/TableCache.java
@@ -14,9 +14,13 @@
public void processEvent(Schema schema, MaxwellFilter filter, Long tableId, String dbName, String tblName) {
if ( !tableMapCache.containsKey(tableId) ) {
if ( filter != null && filter.isTableBlacklisted(dbName, tblName) ) {
blacklistedTableCache.put(tableId, tblName);
return;
if ( filter != null ) {
if ( filter.isTableBlacklisted(dbName, tblName) ) {
blacklistedTableCache.put(tableId, tblName);
return;
}
else if ( !filter.matches(dbName, tblName) )
return;
}
Database db = schema.findDatabase(dbName);

0 comments on commit 2618b70

Please sign in to comment.