Merge pull request #49462 from rzarzynski/wip-bug-53789

osdc: fix the ENOCONN normalization in Objecter::_linger_reconnect()
This commit is contained in:
Laura Flores 2024-01-24 14:00:03 -06:00 committed by GitHub
commit cd2edcf9d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -671,8 +671,8 @@ void Objecter::_linger_reconnect(LingerOp *info, bs::error_code ec)
<< " (last_error " << info->last_error << ")" << dendl;
std::unique_lock wl(info->watch_lock);
if (ec) {
ec = _normalize_watch_error(ec);
if (!info->last_error) {
ec = _normalize_watch_error(ec);
if (info->handle) {
asio::defer(finish_strand, CB_DoWatchError(this, info, ec));
}