From: Suyash Dongre Date: Wed, 11 Sep 2024 14:05:44 +0000 (+0530) Subject: rgw_log_backing: error code not returned X-Git-Tag: testing/wip-vshankar-testing-20240923.114534-debug~3^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=399c53fae04f98a55119848609b6fe50cc48179d;p=ceph-ci.git rgw_log_backing: error code not returned Fixes: https://tracker.ceph.com/issues/68031 Signed-off-by: Suyash Dongre --- diff --git a/src/rgw/driver/rados/rgw_log_backing.cc b/src/rgw/driver/rados/rgw_log_backing.cc index 110a54015a3..14385596845 100644 --- a/src/rgw/driver/rados/rgw_log_backing.cc +++ b/src/rgw/driver/rados/rgw_log_backing.cc @@ -273,7 +273,7 @@ bs::error_code logback_generations::setup(const DoutPrefixProvider *dpp, ldpp_dout(dpp, -1) << __PRETTY_FUNCTION__ << ":" << __LINE__ << ": failed writing oid=" << oid << ", r=" << r << dendl; - bs::system_error(-r, bs::system_category()); + return bs::error_code(-r, bs::system_category()); } // Did someone race us? Then re-read. if (r != 0) {