From: Yao Zongyou Date: Mon, 7 Aug 2017 05:08:11 +0000 (+0800) Subject: Fix rgw not responding occasionally when receiving SIGHUP signal. X-Git-Tag: v12.2.0~32^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=116b2fe6c10cc645d0b62d5d64dd967d7e8150dc;p=ceph.git Fix rgw not responding occasionally when receiving SIGHUP signal. Signed-off-by: Yao Zongyou (cherry picked from commit 18c97e568ef7df6d9ce7d68f55b353a1a9d498ab) --- diff --git a/src/rgw/rgw_quota.cc b/src/rgw/rgw_quota.cc index 50dc53a55bb..8e050a0592d 100644 --- a/src/rgw/rgw_quota.cc +++ b/src/rgw/rgw_quota.cc @@ -512,6 +512,9 @@ class RGWUserStatsCache : public RGWQuotaCache { ldout(cct, 5) << "ERROR: sync_all_users() returned ret=" << ret << dendl; } + if (stats->going_down()) + break; + lock.Lock(); cond.WaitInterval(lock, utime_t(cct->_conf->rgw_user_quota_sync_interval, 0)); lock.Unlock();