Skip to content

Commit

Permalink
0004786: Force trigger regenerate does not work properly
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Feb 3, 2021
1 parent de90994 commit 90a5e04
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -1262,13 +1262,10 @@ public void syncTriggers(StringBuilder sqlBuffer, boolean force) {

boolean createTriggersForTables = false;
String nodeId = nodeService.findIdentityNodeId();
if (!force && StringUtils.isNotBlank(nodeId)) {
if (StringUtils.isNotBlank(nodeId)) {
NodeSecurity nodeSecurity = nodeService.findNodeSecurity(nodeId);
if (nodeSecurity != null
&& (nodeSecurity.isInitialLoadEnabled() || nodeSecurity
.getInitialLoadTime() == null)) {
createTriggersForTables = parameterService
.is(ParameterConstants.TRIGGER_CREATE_BEFORE_INITIAL_LOAD);
if (nodeSecurity != null && (nodeSecurity.isInitialLoadEnabled() || nodeSecurity .getInitialLoadEndTime() == null)) {
createTriggersForTables = parameterService.is(ParameterConstants.TRIGGER_CREATE_BEFORE_INITIAL_LOAD);
if (!createTriggersForTables) {
log.info("Trigger creation has been disabled by "
+ ParameterConstants.TRIGGER_CREATE_BEFORE_INITIAL_LOAD
Expand Down

0 comments on commit 90a5e04

Please sign in to comment.