Skip to content

Commit

Permalink
0001764: Add parameter to disable sync triggers at server startup
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jun 11, 2014
1 parent 26feaa4 commit 27dac6e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Expand Up @@ -507,7 +507,11 @@ public synchronized boolean start(boolean startJobs) {
new Object[] { node.getNodeGroupId(), node.getNodeId(),
node.getExternalId() });

triggerRouterService.syncTriggers();
if (parameterService.is(ParameterConstants.AUTO_SYNC_TRIGGERS_AT_STARTUP, true)) {
triggerRouterService.syncTriggers();
} else {
log.info(ParameterConstants.AUTO_SYNC_TRIGGERS_AT_STARTUP + " is turned off");
}

if (parameterService
.is(ParameterConstants.HEARTBEAT_SYNC_ON_STARTUP, false) || isBlank(node.getDatabaseType()) ||
Expand Down
Expand Up @@ -92,6 +92,7 @@ private ParameterConstants() {
public final static String AUTO_SYNC_CONFIGURATION_ON_INCOMING = "auto.sync.configuration.on.incoming";
public final static String AUTO_CONFIGURE_DATABASE = "auto.config.database";
public final static String AUTO_SYNC_TRIGGERS = "auto.sync.triggers";
public final static String AUTO_SYNC_TRIGGERS_AT_STARTUP = "auto.sync.triggers.at.startup";
public final static String AUTO_SYNC_TRIGGERS_AFTER_CONFIG_CHANGED = "auto.sync.triggers.after.config.change";
public final static String AUTO_REFRESH_AFTER_CONFIG_CHANGED = "auto.refresh.after.config.changes.detected";
public final static String AUTO_CONFIGURE_REG_SVR_SQL_SCRIPT = "auto.config.registration.svr.sql.script";
Expand Down
Expand Up @@ -356,6 +356,13 @@ auto.sync.triggers=true
# Type: boolean
auto.sync.triggers.after.config.change=true

# If this is true, then run the sync triggers process at startup
#
# DatabaseOverridable: true
# Tags: general
# Type: boolean
auto.sync.triggers.at.startup=true

# Capture and send SymmetricDS configuration changes to client nodes.
#
# Tags: general
Expand Down

0 comments on commit 27dac6e

Please sign in to comment.