]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: log snaptrim message to dout 42460/head
authorArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Fri, 23 Jul 2021 07:27:00 +0000 (09:27 +0200)
committerArthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
Fri, 23 Jul 2021 07:32:21 +0000 (09:32 +0200)
This log message is not an error and is done on every tick of the
snaptrim process. Replace the derr logging to dout(10) to not log it
by default.

Fixes: https://tracker.ceph.com/issues/51799
Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@cern.ch>
src/osd/PrimaryLogPG.cc

index c91ddf92f9e6d28fddd96139ddd2a4f1afbaaedd..ac631a7f1f5600c8143db58914b4ee37c843cb2c 100644 (file)
@@ -4809,7 +4809,7 @@ int PrimaryLogPG::trim_object(
        ctx->mtime,
        0)
       );
-    derr << "removing snap head" << dendl;
+    dout(10) << "removing snap head" << dendl;
     object_info_t& oi = head_obc->obs.oi;
     ctx->delta_stats.num_objects--;
     if (oi.is_dirty()) {