satellite/satellitedb: no orders for exited nodes

We should not be sending any type of orders to nodes that have completed
graceful exit with the current satellite. In particular, we should not
be trying to audit them, because that would be silly.

Change-Id: Ie2153e5739914ab696feefcdef28545ed70f84e4
This commit is contained in:
paul cannon 2020-06-11 20:11:22 -05:00 committed by Maximillian von Briesen
parent 958ea1b9df
commit 7b8e91ff28

View File

@ -156,6 +156,7 @@ func (cache *overlaycache) GetOnlineNodesForGetDelete(ctx context.Context, nodeI
FROM nodes
WHERE id = any($1::bytea[])
AND disqualified IS NULL
AND exit_finished_at IS NULL
AND last_contact_success > $2
`), postgresNodeIDList(nodeIDs), time.Now().Add(-onlineWindow))
if err != nil {