proxmox-backup/src/server
Thomas Lamprecht b4b14dc16e do_verification_job: fix "never-reverify" and refactor/comment
commit a4915dfc2b made a wrong fix, as
it did not observed that the last expressions was done under the
invariant that we had a last verification result, because if none
could be loaded we already returned true (include).

It thus broke the case for "never re-verify", which is important when
using multiple schedules, a more high frequent one for new,
unverified snapshots, and a low frequency to re-verify older snapshots,
e.g., monthly.

Fix this case again, rework the code to avoid this easy to oversee
invariant. Use a nested match to better express the implication of
each setting, and add some comments.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-28 16:12:09 +01:00
..
command_socket.rs src/server/command_socket.rs: do not abort loop on client errors, allow backup gid 2020-05-07 09:27:33 +02:00
config.rs file logger: add option to make the backup user the log file owner 2020-10-19 10:37:26 +02:00
email_notifications.rs verify: improve code reuse, fix filter function 2020-10-28 12:58:15 +01:00
environment.rs server/rest: forward real client IP on proxied request 2020-10-16 10:36:54 +02:00
formatter.rs depend on proxmox 0.1.31 - use Value to store result metadata 2020-05-18 09:57:35 +02:00
h2service.rs bump proxmox to 0.3, cleanup http_err macro usage 2020-07-29 09:38:36 +02:00
jobstate.rs jobstate: fix doctest 2020-10-28 10:52:16 +01:00
rest.rs REST: rename token to csrf_token 2020-10-19 14:02:19 +02:00
state.rs followup: server/state: rename task_count to internal_task_count 2020-07-24 12:11:39 +02:00
upid.rs upid: use systemd escape to decode/encode the worker_id 2020-10-22 12:24:58 +02:00
verify_job.rs do_verification_job: fix "never-reverify" and refactor/comment 2020-10-28 16:12:09 +01:00
worker_task.rs log rotate: move basic rotation logic into module for reuse 2020-10-20 11:09:17 +02:00