]> git.proxmox.com Git - proxmox-backup.git/commitdiff
datastore: more concise comment
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 2 Jun 2022 15:48:08 +0000 (17:48 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 2 Jun 2022 15:48:08 +0000 (17:48 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
pbs-datastore/src/datastore.rs

index 93a5b749e0b1c6132cb4e532b4b287bc5ff6a548..18136c5b37851ed3913be74bfb0cf33b493e1ecf 100644 (file)
@@ -145,8 +145,7 @@ impl DataStore {
         let mut map = DATASTORE_MAP.lock().unwrap();
         let entry = map.get(name);
 
-        // reuse chunk_store, we only want to reload the datastore config, and the path
-        // is normally not editable and requires a restart of the proxy
+        // reuse chunk store so that we keep using the same process locker instance!
         let chunk_store = if let Some(datastore) = &entry {
             if datastore.last_generation == generation && now < (datastore.last_update + 60) {
                 return Ok(Arc::new(Self {