From 575a7900660c7ec02250aa58cd88b2e02962e135 Mon Sep 17 00:00:00 2001 From: sdnets Date: Wed, 13 Jun 2018 09:32:16 +0800 Subject: [PATCH] =?utf8?q?rgw:=20rgwgc:process=20coredump=20in=20some=20sp?= =?utf8?q?ecial=20case=E3=80=82=20Gc=20processes=20obja,=20objb,=20objc=20?= =?utf8?q?in=20order=20and=20pool=20of=20objb=20is=20deleted=20(obja=20and?= =?utf8?q?=20objc=20is=20in=20the=20same=20pool=20and=20pool=20exits).=20R?= =?utf8?q?GW=20will=20coredump=20as=20ctx->io=5Fctx=5Fimpl=20is=20an=20emp?= =?utf8?q?ty=20point=20during=20delete=20objc.=20Fixes:http://tracker.ceph?= =?utf8?q?.com/issues/23199?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaokun --- src/rgw/rgw_gc.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_gc.cc b/src/rgw/rgw_gc.cc index c6519da74cef9..87a98e469af10 100644 --- a/src/rgw/rgw_gc.cc +++ b/src/rgw/rgw_gc.cc @@ -315,6 +315,7 @@ int RGWGC::process(int index, int max_secs, bool expired_only, ctx = new IoCtx; ret = rgw_init_ioctx(store->get_rados_handle(), obj.pool, *ctx); if (ret < 0) { + last_pool = ""; ldpp_dout(this, 0) << "ERROR: failed to create ioctx pool=" << obj.pool << dendl; continue; } -- 2.39.5