From 684d813036800eb8dacea5bc22c8a74fd35f273a Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 3 Dec 2015 17:02:16 -0800 Subject: [PATCH] rgw: report error Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_coroutine.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_coroutine.cc b/src/rgw/rgw_coroutine.cc index a91c7333ded16..1acfd50f5d8e7 100644 --- a/src/rgw/rgw_coroutine.cc +++ b/src/rgw/rgw_coroutine.cc @@ -350,6 +350,9 @@ bool RGWCoroutinesStack::unblock_stack(RGWCoroutinesStack **s) void RGWCoroutinesManager::report_error(RGWCoroutinesStack *op) { + if (!op) { + return; + } #warning need to have error logging infrastructure that logs on backend lderr(cct) << "ERROR: failed operation: " << op->error_str() << dendl; } @@ -692,7 +695,7 @@ bool RGWCoroutine::drain_children(int num_cr_left) if (ret < 0) { ldout(cct, 0) << "ERROR: collect() returned error" << dendl; /* we should have reported this error */ -#warning deal with error + log_error() << "ERROR: collect() returned error (ret=" << ret << ")"; } } } -- 2.39.5