Skip to content

Commit

Permalink
0000893: Hidden feature to override the sym_ tables virtual triggers …
Browse files Browse the repository at this point in the history
…shouldn't look at router id to see if needs to replace the trigger
  • Loading branch information
chenson42 committed Nov 23, 2012
1 parent 49b81d6 commit 943fb92
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -278,6 +278,16 @@ protected List<Trigger> buildTriggersForSymmetricTables(String version,
List<Trigger> triggers = new ArrayList<Trigger>();
List<String> tables = new ArrayList<String>(TableConstants.getConfigTables(symmetricDialect
.getTablePrefix()));

List<Trigger> definedTriggers = getTriggers();
for (Trigger trigger : definedTriggers) {
if (tables.remove(trigger.getSourceTableName())) {
log.info("Not generating virtual triggers for {} because there is a trigger already defined for it",
trigger.getSourceTableName());
}
}


if (extraConfigTables != null) {
for (String extraTable : extraConfigTables) {
tables.add(extraTable);
Expand Down

0 comments on commit 943fb92

Please sign in to comment.