automerge
This commit is contained in:
@ -528,6 +528,8 @@ impl AccountsDB {
|
|||||||
AppendVec::new_relative_path(slot_id, storage_entry.id);
|
AppendVec::new_relative_path(slot_id, storage_entry.id);
|
||||||
let append_vec_abs_path =
|
let append_vec_abs_path =
|
||||||
append_vecs_path.as_ref().join(&append_vec_relative_path);
|
append_vecs_path.as_ref().join(&append_vec_relative_path);
|
||||||
|
let target = local_dir.join(append_vec_abs_path.file_name().unwrap());
|
||||||
|
if std::fs::rename(append_vec_abs_path.clone(), target).is_err() {
|
||||||
let mut copy_options = CopyOptions::new();
|
let mut copy_options = CopyOptions::new();
|
||||||
copy_options.overwrite = true;
|
copy_options.overwrite = true;
|
||||||
let e = fs_extra::move_items(
|
let e = fs_extra::move_items(
|
||||||
@ -545,6 +547,7 @@ impl AccountsDB {
|
|||||||
info!("{:?}", e);
|
info!("{:?}", e);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// Notify the AppendVec of the new file location
|
// Notify the AppendVec of the new file location
|
||||||
let local_path = local_dir.join(append_vec_relative_path);
|
let local_path = local_dir.join(append_vec_relative_path);
|
||||||
|
Reference in New Issue
Block a user