Skip to content

Commit

Permalink
0000855: Create a new heartbeat channel for sym_node_host. Deprecate …
Browse files Browse the repository at this point in the history
…heartbeat_time on sym_node
  • Loading branch information
chenson42 committed Nov 14, 2012
1 parent 417500f commit be45dcd
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -133,7 +133,7 @@ public NodeServiceSqlMap(IDatabasePlatform platform, Map<String, String> replace
+ " last_restart_time=? where node_id=? and host_name=? ");

putSql("findOfflineNodesSql",
"select h.node_id, max(h.heartbeat_time), h.timezone_offset from $(node_host) h inner join $(node) n on h.node_id=n.node_id"
"select h.node_id, max(h.heartbeat_time) as heartbeat_time, h.timezone_offset from $(node_host) h inner join $(node) n on h.node_id=n.node_id"
+ " where n.sync_enabled = 1 and n.node_id != ? and n.created_at_node_id = ? group by h.node_id, h.timezone_offset");

}
Expand Down

0 comments on commit be45dcd

Please sign in to comment.