]> git.proxmox.com Git - proxmox-backup.git/commitdiff
datastore: gc: comment exclusive process lock
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 1 Oct 2020 10:38:04 +0000 (12:38 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 1 Oct 2020 10:38:04 +0000 (12:38 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/backup/datastore.rs

index d24645a7ee73fda99dbc1bae558abbf48149a23f..f23a851754bc6e00814479da6682254f4f9067bc 100644 (file)
@@ -478,6 +478,9 @@ impl DataStore {
 
         if let Ok(ref mut _mutex) = self.gc_mutex.try_lock() {
 
+            // avoids that we run GC if an old daemon process has still a
+            // running backup writer, which is not save as we have no "oldest
+            // writer" information and thus no safe atime cutoff
             let _exclusive_lock =  self.chunk_store.try_exclusive_lock()?;
 
             let phase1_start_time = unsafe { libc::time(std::ptr::null_mut()) };