]> git.proxmox.com Git - proxmox-backup.git/blobdiff - src/bin/backup-client.rs
image_index.rs: implement atomic write/rename
[proxmox-backup.git] / src / bin / backup-client.rs
index 4b1de70fdb0a954f969b000a4906a0686de24bdb..4dc64962c8140f1707b730f2ab282283153f3566 100644 (file)
@@ -45,6 +45,8 @@ fn backup_file(param: Value, _info: &ApiMethod) -> Result<Value, Error> {
         Ok(true)
     })?;
 
+    index.close()?; // commit changes
+
     Ok(Value::Null)
 }