From b761989033ac0722a1504238648a806c8004b8e3 Mon Sep 17 00:00:00 2001 From: Yao Zongyou Date: Thu, 9 Nov 2017 20:40:15 +0800 Subject: [PATCH] rgw: check going_down() when lifecycle processing Fixes: http://tracker.ceph.com/issues/22099 Signed-off-by: Yao Zongyou --- src/rgw/rgw_lc.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/rgw/rgw_lc.cc b/src/rgw/rgw_lc.cc index 0e99b1dc25e..05f993ef7b5 100644 --- a/src/rgw/rgw_lc.cc +++ b/src/rgw/rgw_lc.cc @@ -318,6 +318,8 @@ int RGWLC::handle_multipart_expiration(RGWRados::Bucket *target, const mapkey << dendl; } + + if (going_down()) + return 0; } } } while (is_truncated); -- 2.39.5