]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls/journal: reduce verbosity of debug logs for non-errors 29551/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 22 Jul 2019 12:55:53 +0000 (08:55 -0400)
committerPrashant D <pdhange@redhat.com>
Thu, 8 Aug 2019 09:22:43 +0000 (05:22 -0400)
Fixes: http://tracker.ceph.com/issues/40865
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 7779860d38725636fb5438e2f52e432994dc3926)

src/cls/journal/cls_journal.cc

index 63d4584240b0f90c5bfd2982068b712239f396c8..ff909bea14153bc98bf300a2d2054dddd7f595fc 100644 (file)
@@ -55,8 +55,11 @@ int read_key(cls_method_context_t hctx, const string &key, T *t,
              bool ignore_enoent = false) {
   bufferlist bl;
   int r = cls_cxx_map_get_val(hctx, key, &bl);
-  if (r == -ENOENT && ignore_enoent) {
-    return 0;
+  if (r == -ENOENT) {
+    if (ignore_enoent) {
+      r = 0;
+    }
+    return r;
   } else if (r < 0) {
     CLS_ERR("failed to get omap key: %s", key.c_str());
     return r;
@@ -468,7 +471,7 @@ int journal_set_minimum_set(cls_method_context_t hctx, bufferlist *in,
   }
 
   if (current_active_set < object_set) {
-    CLS_ERR("active object set earlier than minimum: %" PRIu64
+    CLS_LOG(10, "active object set earlier than minimum: %" PRIu64
             " < %" PRIu64, current_active_set, object_set);
     return -EINVAL;
   }