image_index.rs: implement atomic write/rename
This commit is contained in:
1 parent
798881a68a
commit
4fbb72a8b4
2 files changed
+49
-4
No files matched your search
@@ -45,6 +45,8 @@ fn backup_file(param: Value, _info: &ApiMethod) -> Result<Value, Error> {
|
||||
Ok(true)
|
||||
})?;
|
||||
|
||||
index.close()?; // commit changes
|
||||
|
||||
Ok(Value::Null)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user