From: J. Eric Ivancich Date: Mon, 23 Feb 2026 17:10:37 +0000 (-0500) Subject: rgw: only log errors in add_datalog_entry when error X-Git-Tag: v21.0.0~139^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9375b6e6fe9a30b430ae1be8392c02db5b72f85e;p=ceph.git rgw: only log errors in add_datalog_entry when error There was an unconditional error message that needed to be fixed. But since add_datalog_entry already logs the error, the logging can be removed altogether. Signed-off-by: J. Eric Ivancich --- diff --git a/src/rgw/driver/rados/rgw_rados.cc b/src/rgw/driver/rados/rgw_rados.cc index 23a222ac62b0..d1d2e835c521 100644 --- a/src/rgw/driver/rados/rgw_rados.cc +++ b/src/rgw/driver/rados/rgw_rados.cc @@ -972,12 +972,14 @@ void RGWIndexCompletionManager::process() } if (c->log_op) { - // This null_yield can stay, for now, since we're in our own thread - r = add_datalog_entry(&dpp, store->svc.datalog_rados, bucket_info, - bs.shard_id, null_yield); - ldpp_dout(&dpp, 0) << "ERROR: " << __func__ << "(): write to datalog failed, obj=" << c->obj << " r=" << r << dendl; - - /* ignoring error, can't do anything about it */ + /* this null_yield can stay for now since we're in our own + * thread */ + std::ignore = add_datalog_entry(&dpp, store->svc.datalog_rados, + bucket_info, bs.shard_id, + null_yield); + /* if there is an error we can ignore it, as a) there's + * nothing we can do and b) it's already logged in + * add_datalog_entry */ } } }