Skip to content

Commit

Permalink
0001659: Manage->Nodes screen shows offline
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Apr 1, 2014
1 parent 45e80b2 commit 4f1c5a6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,10 @@ public NodeServiceSqlMap(IDatabasePlatform platform, Map<String, String> replace
+ " last_restart_time=? where node_id=? and host_name=? ");

putSql("findNodeHeartbeatsSql",
"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");
"select h.node_id, h.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 = ?"
+ " and h.heartbeat_time = (select max(hh.heartbeat_time) from $(node_host) hh where hh.node_id = h.node_id)"
+ " group by h.node_id, h.timezone_offset");

}

Expand Down

0 comments on commit 4f1c5a6

Please sign in to comment.