Skip to content

Commit

Permalink
mgmt: Update state to Up when mgmt server writes heartbeat to db
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhouapache committed Nov 13, 2024
1 parent 483bab1 commit 3445d7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void update(long id, long runid, Date lastUpdate) {
try {
txn.start();

pstmt = txn.prepareAutoCloseStatement("update mshost set last_update=?, removed=null, alert_count=0 where id=? and runid=?");
pstmt = txn.prepareAutoCloseStatement("update mshost set last_update=?, removed=null, alert_count=0, state='Up' where id=? and runid=?");
pstmt.setString(1, DateUtil.getDateDisplayString(TimeZone.getTimeZone("GMT"), lastUpdate));
pstmt.setLong(2, id);
pstmt.setLong(3, runid);
Expand Down

0 comments on commit 3445d7a

Please sign in to comment.