Skip to content

Commit

Permalink
update node_security to keep out registration during initial load
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Dec 20, 2007
1 parent 244a836 commit b10fcc2
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -151,6 +151,8 @@ public void insertReloadEvent(Node targetNode) {
listener.beforeReload(targetNode);
}
}

insertNodeSecurityUpdate(targetNode);
List<Trigger> triggers = configurationService.getActiveTriggersForReload(sourceNode.getNodeGroupId(),
targetNode.getNodeGroupId());

Expand All @@ -177,6 +179,15 @@ public void insertReloadEvent(Node targetNode) {
}
}
nodeService.setInitialLoadEnabled(targetNode.getNodeId(), false);
insertNodeSecurityUpdate(targetNode);
}

private void insertNodeSecurityUpdate(Node node) {
Data data = createData(tablePrefix + "_security", " t.node_id = '" + node.getNodeId() + "'");
if (data != null) {
data.setChannelId(Constants.CHANNEL_CONFIG);
insertDataEvent(data, node.getNodeId());
}
}

/**
Expand Down

0 comments on commit b10fcc2

Please sign in to comment.