Avoid offline components to be marked as failed
This commit is contained in:
parent
b3ac981681
commit
b70a056dc5
|
@ -802,7 +802,8 @@ sub main() {
|
|||
|
||||
db_do ($DBH,
|
||||
"UPDATE tserver SET status = -1
|
||||
WHERE UNIX_TIMESTAMP(now())-UNIX_TIMESTAMP(keepalive) > 2*server_keepalive"
|
||||
WHERE UNIX_TIMESTAMP(now())-UNIX_TIMESTAMP(keepalive) > 2*server_keepalive
|
||||
AND status != 0"
|
||||
);
|
||||
|
||||
# Set the master server
|
||||
|
|
Loading…
Reference in New Issue