Avoid offline components to be marked as failed

This commit is contained in:
fbsanchez 2021-05-14 13:07:56 +02:00
parent b3ac981681
commit b70a056dc5

View File

@ -802,7 +802,8 @@ sub main() {
db_do ($DBH, db_do ($DBH,
"UPDATE tserver SET status = -1 "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 # Set the master server