]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: rgwgc:process coredump in some special case。 Gc processes obja, objb, objc in... 25430/head
authorsdnets <sdnets2018@gmail.com>
Wed, 13 Jun 2018 01:32:16 +0000 (09:32 +0800)
committerCasey Bodley <cbodley@redhat.com>
Thu, 6 Dec 2018 21:15:22 +0000 (16:15 -0500)
Fixes:http://tracker.ceph.com/issues/23199

Signed-off-by: zhaokun <develop@hikdata.com>
src/rgw/rgw_gc.cc

index c6519da74cef91c41f53ed4f8e7b6faac9147f71..87a98e469af10869fc0dcb1cb915c2bc4129f35c 100644 (file)
@@ -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;
          }