]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd: add log information to record the cause of do_osd_ops failure
authorNancySu05 <su_nan@inspur.com>
Wed, 21 Aug 2019 08:01:07 +0000 (16:01 +0800)
committerNancySu05 <su_nan@inspur.com>
Thu, 22 Aug 2019 09:28:53 +0000 (17:28 +0800)
Signed-off-by: NancySu05 <su_nan@inspur.com>
src/osd/PrimaryLogPG.cc

index c7652d316f5c58810ec655da024d10df8e9804a9..2c9a504d886855ce4643002d58154e52b8959233 100644 (file)
@@ -6795,6 +6795,7 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
          map<string,bufferlist> rmattrs;
          result = getattrs_maybe_cache(ctx->obc, &rmattrs);
          if (result < 0) {
+           dout(10) << __func__ << " error: " << cpp_strerror(result) << dendl;
            return result;
          }
          map<string, bufferlist>::iterator iter;
@@ -7655,6 +7656,9 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
     if (result < 0)
       break;
   }
+  if (result < 0) {
+    dout(10) << __func__ << " error: " << cpp_strerror(result) << dendl;
+  }
   return result;
 }