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: v15.1.0~1776^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a6e8f553fec6575c4089e075bc9e8b212f1f0f88;p=ceph-ci.git osd: add log information to record the cause of do_osd_ops failure Signed-off-by: NancySu05 --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index c7652d316f5..2c9a504d886 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -6795,6 +6795,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; @@ -7655,6 +7656,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; }