Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add filter.matches to tableMapCache
- Loading branch information
Showing
with
7 additions
and
3 deletions.
-
+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); |
|
|