Skip to content

Commit

Permalink
Prevent the building of sym_node's trigger_hist during every syncTrigger
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed May 29, 2009
1 parent d0566de commit a6a4d99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -120,9 +120,6 @@ protected List<Trigger> getConfigurationTriggers(String sourceGroupId, String ta
Trigger trigger = buildConfigTrigger(tableName, syncChanges, sourceGroupId, targetGroupId);
trigger.setInitialLoadOrder(initialLoadOrder++);
trigger.setInitialLoadSelect(initialLoadSelect);
// little trick to force the rebuild of sym triggers every time
// there is a new version of symmetricds
trigger.setLastModifiedTime(new Date(Version.version().hashCode()));
triggers.add(trigger);
}
return triggers;
Expand All @@ -141,6 +138,9 @@ protected Trigger buildConfigTrigger(String tableName, boolean syncChanges, Stri
trigger.setSourceGroupId(sourceGroupId);
trigger.setTargetGroupId(targetGroupId);
trigger.setChannelId(Constants.CHANNEL_CONFIG);
// little trick to force the rebuild of sym triggers every time
// there is a new version of symmetricds
trigger.setLastModifiedTime(new Date(Version.version().hashCode()));
return trigger;
}

Expand Down
2 changes: 1 addition & 1 deletion symmetric/src/test/resources/symmetric-test.properties
@@ -1,5 +1,5 @@
test.root=h2
test.client=derby
test.client=h2

mysql.db.driver=com.mysql.jdbc.Driver
mysql.db.user=root
Expand Down

0 comments on commit a6a4d99

Please sign in to comment.