When a node is first initialized, it's last_action is set to -1. For our
auto delete logic, we don't use the node's last_action in case we've
never seen the node. However we would only check if last_action was
zero, and hence we could get a situation where nodes were deleted
automatically right away. This as we would end up calculating the
last_seen_delta as current_time - (-1).
When a node is first initialized, it's
last_action
is set to -1. For our auto delete logic, we don't use the node'slast_action
in case we've never seen the node. However we would only check iflast_action
was zero, and hence we could get a situation where nodes were deleted automatically right away. This as we would end up calculating thelast_seen_delta
ascurrent_time - (-1)
.