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
1 changed files with 2 additions and 1 deletions

View File

@ -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