mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-28 16:07:05 +00:00
fix:#351 delete object err
This commit is contained in:
@@ -629,7 +629,11 @@ impl LocalDisk {
|
|||||||
let _ = fm.data.remove(vec![vid, dir]);
|
let _ = fm.data.remove(vec![vid, dir]);
|
||||||
|
|
||||||
let dir_path = self.get_object_path(volume, format!("{}/{}", path, dir).as_str())?;
|
let dir_path = self.get_object_path(volume, format!("{}/{}", path, dir).as_str())?;
|
||||||
self.move_to_trash(&dir_path, true, false).await?;
|
if let Err(err) = self.move_to_trash(&dir_path, true, false).await {
|
||||||
|
if !(is_err_file_not_found(&err) || is_err_os_not_exist(&err)) {
|
||||||
|
return Err(err);
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,13 +15,6 @@ REMOTE_PATH="~"
|
|||||||
# 格式:服务器IP 用户名 目标路径
|
# 格式:服务器IP 用户名 目标路径
|
||||||
SERVER_LIST=(
|
SERVER_LIST=(
|
||||||
"root@121.89.80.13"
|
"root@121.89.80.13"
|
||||||
"root@121.89.80.198"
|
|
||||||
"root@8.130.78.237"
|
|
||||||
"root@8.130.189.236"
|
|
||||||
"root@121.89.80.230"
|
|
||||||
"root@121.89.80.45"
|
|
||||||
"root@8.130.191.95"
|
|
||||||
"root@121.89.80.91"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# 遍历服务器列表
|
# 遍历服务器列表
|
||||||
|
|||||||
Reference in New Issue
Block a user