]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: only log errors in add_datalog_entry when error 67378/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Mon, 23 Feb 2026 17:10:37 +0000 (12:10 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Mon, 23 Feb 2026 17:10:37 +0000 (12:10 -0500)
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 <ivancich@redhat.com>
src/rgw/driver/rados/rgw_rados.cc

index 23a222ac62b0ce476a612e4f6b117488fc2ee4c7..d1d2e835c5211e8048cf1085a4bc4c481ff3bfad 100644 (file)
@@ -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 */
       }
     }
   }