Adjust cache cleanup to the deficits of RRDP. Unlike rysnc, RRDP has no
authorclaudio <claudio@openbsd.org>
Mon, 4 Apr 2022 16:02:54 +0000 (16:02 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 4 Apr 2022 16:02:54 +0000 (16:02 +0000)
commit6cf9bac2771a298ea9cdee41c780f811956af142
tree2fe91e8e65ae2d1ae7b9360c3550fa2585d51759
parent620cc1d5c7cec735f91261a9ea0153bbbf41ead7
Adjust cache cleanup to the deficits of RRDP. Unlike rysnc, RRDP has no
method to sync the cache. It just depends on all deltas to work but has
no method to check if the result is consistent with the source.
Because of this do not unlink files which were fetched via RRDP. Instead
move them back to their .rrdp directory and hope the will be cleaned up.
This should help to keep the cache coherent in some edge cases.
OK tb@
usr.sbin/rpki-client/extern.h
usr.sbin/rpki-client/main.c
usr.sbin/rpki-client/mkdir.c
usr.sbin/rpki-client/repo.c