From 116b2fe6c10cc645d0b62d5d64dd967d7e8150dc Mon Sep 17 00:00:00 2001 From: Yao Zongyou Date: Mon, 7 Aug 2017 13:08:11 +0800 Subject: [PATCH] Fix rgw not responding occasionally when receiving SIGHUP signal. Signed-off-by: Yao Zongyou (cherry picked from commit 18c97e568ef7df6d9ce7d68f55b353a1a9d498ab) --- src/rgw/rgw_quota.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rgw/rgw_quota.cc b/src/rgw/rgw_quota.cc index 50dc53a55bb3a..8e050a0592d68 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(); -- 2.39.5