mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
Merge pull request #69293 from smanjara/wip-datalog-ec
rgw: fix log_remove() -EIO on non-existent FIFO shards
This commit is contained in:
commit
3a64c5588d
@ -180,7 +180,10 @@ asio::awaitable<void> log_remove(
|
||||
= co_await fifo::FIFO::get_meta(rados, oid, loc, std::nullopt,
|
||||
asio::redirect_error(asio::use_awaitable,
|
||||
ec));
|
||||
if (ec == sys::errc::no_such_file_or_directory) continue;
|
||||
if (ec == sys::errc::no_such_file_or_directory) {
|
||||
ec.clear();
|
||||
continue;
|
||||
}
|
||||
if (!ec && info.head_part_num > -1) {
|
||||
for (auto j = info.tail_part_num; j <= info.head_part_num; ++j) {
|
||||
sys::error_code subec;
|
||||
@ -219,8 +222,8 @@ asio::awaitable<void> log_remove(
|
||||
<< ": " << ec.message() << dendl;
|
||||
}
|
||||
}
|
||||
if (ec)
|
||||
throw sys::error_code(ec);
|
||||
if (ec && ec != sys::errc::no_such_file_or_directory)
|
||||
throw sys::system_error(ec);
|
||||
co_return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user