proxmox-backup/pbs-datastore
Thomas Lamprecht 51d900d187 datastore: swap ConfigVersionCache with digest for change detection
We got the digest available anyway, and it's only 16 bytes more to
save (compared to last_generation and the recently removed last_time,
both being 64 bit = 8 bytes each)

Side benefit, we detect config changes made manually (e.g., `vim
datacenter.cfg`) immediately.

Note that we could restructure the maintenance mode checking to only
be done after checking if there's a cached datastore, in which case
using the generation could make sense to decide if we need to re-load
it again before blindly loading the config anyway. As that's not only
some (not exactly hard but not really trivial like a typo fix either)
restructuring work but also means we'd lose the "detect manual
changes" again I'd rather keep using the digest.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-06-04 15:26:50 +02:00
..
examples tree-wide: prefer api-type BackupGroup for logging 2022-05-16 18:49:19 +02:00
src datastore: swap ConfigVersionCache with digest for change detection 2022-06-04 15:26:50 +02:00
Cargo.toml update to nix 0.24 / rustyline 9 / proxmox-sys 0.3 2022-06-02 14:33:33 +02:00