]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: add log information to record the cause of do_osd_ops failure 30546/head
authorNancySu05 <su_nan@inspur.com>
Wed, 21 Aug 2019 08:01:07 +0000 (16:01 +0800)
committerPrashant D <pdhange@redhat.com>
Tue, 24 Sep 2019 00:11:21 +0000 (20:11 -0400)
Signed-off-by: NancySu05 <su_nan@inspur.com>
(cherry picked from commit a6e8f553fec6575c4089e075bc9e8b212f1f0f88)

src/osd/PrimaryLogPG.cc

index c034383c9f22cad124625f5208b2107fc35ccd82..2c18bdce472e7ea404e12fa7b6ad326517a447dc 100644 (file)
@@ -6982,6 +6982,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;
@@ -7798,6 +7799,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;
 }