Merge pull request #69293 from smanjara/wip-datalog-ec

rgw: fix log_remove() -EIO on non-existent FIFO shards
This commit is contained in:
Shilpa Jagannath 2026-07-17 10:13:17 -07:00 committed by GitHub
commit 3a64c5588d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}