]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: log snaptrim message to dout 42484/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>
Mon, 26 Jul 2021 06:56:22 +0000 (08:56 +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>
(cherry picked from commit e2b2faef11c18df6c2f1f083d32d279e51b63e82)

src/osd/PrimaryLogPG.cc

index 76217a54e849c3e93c785bdc068c776a4ca2fb7e..4de4eb938447549868649c29dd077e0c6ae1b6f8 100644 (file)
@@ -4523,7 +4523,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()) {