proxmox-rrd: avoild blocking readers while applying the journal

By using and extra RwLock<RRDMap> on the rrd data.
This commit is contained in:
Dietmar Maurer
2021-10-15 09:22:07 +02:00
parent 658357c5a8
commit fce7cd0d36
2 changed files with 95 additions and 73 deletions

View File

@ -48,7 +48,6 @@ pub fn initialize_rrd_cache() -> Result<&'static RRDCache, Error> {
}
fn load_callback(
_cache: &RRDCache,
path: &Path,
_rel_path: &str,
dst: DST,