From: NancySu05 Date: Wed, 21 Aug 2019 08:01:07 +0000 (+0800) Subject: osd: add log information to record the cause of do_osd_ops failure X-Git-Tag: v14.2.5~99^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c3864278eda5364f266391c21d87e671592d5e93;p=ceph.git osd: add log information to record the cause of do_osd_ops failure Signed-off-by: NancySu05 (cherry picked from commit a6e8f553fec6575c4089e075bc9e8b212f1f0f88) --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index c034383c9f2..2c18bdce472 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -6982,6 +6982,7 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector& ops) map rmattrs; result = getattrs_maybe_cache(ctx->obc, &rmattrs); if (result < 0) { + dout(10) << __func__ << " error: " << cpp_strerror(result) << dendl; return result; } map::iterator iter; @@ -7798,6 +7799,9 @@ int PrimaryLogPG::do_osd_ops(OpContext *ctx, vector& ops) if (result < 0) break; } + if (result < 0) { + dout(10) << __func__ << " error: " << cpp_strerror(result) << dendl; + } return result; }