image_index.rs: implement atomic write/rename
This commit is contained in:
@ -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