Skip to content

Commit

Permalink
0001797: sym_table_reload_request should be cleaned up when a node is…
Browse files Browse the repository at this point in the history
… deleted
  • Loading branch information
chenson42 committed Jul 8, 2014
1 parent 50e9709 commit d8ab2fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Expand Up @@ -250,6 +250,7 @@ public void deleteNode(String nodeId, boolean syncChange) {
transaction.prepareAndExecute(getSql("deleteIncomingErrorSql"), new Object[] { nodeId });
transaction.prepareAndExecute(getSql("deleteExtractRequestSql"), new Object[] { nodeId });
transaction.prepareAndExecute(getSql("deleteNodeCommunicationSql"), new Object[] { nodeId });
transaction.prepareAndExecute(getSql("deleteTableReloadRequestSql"), new Object[] { nodeId, nodeId });
transaction.prepareAndExecute(getSql("setOutgoingBatchOkSql"), new Object[] { nodeId });
transaction.prepareAndExecute(getSql("setIncomingBatchOkSql"), new Object[] { nodeId });
}
Expand Down
Expand Up @@ -110,6 +110,8 @@ public NodeServiceSqlMap(IDatabasePlatform platform, Map<String, String> replace

putSql("deleteIncomingErrorSql", "delete from $(incoming_error) where node_id = ?");

putSql("deleteTableReloadRequestSql", "delete from $(table_reload_request) where source_node_id = ? or target_node_id=?");

putSql("deleteExtractRequestSql", "delete from $(extract_request) where node_id = ?");

putSql("deleteNodeCommunicationSql", "delete from $(node_communication) where node_id = ?");
Expand Down

0 comments on commit d8ab2fb

Please sign in to comment.