]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix rgw not responding occasionally when receiving SIGHUP signal. 16854/head
authorYao Zongyou <yaozongyou@vip.qq.com>
Mon, 7 Aug 2017 05:08:11 +0000 (13:08 +0800)
committerYao Zongyou <yaozongyou@vip.qq.com>
Mon, 7 Aug 2017 05:08:11 +0000 (13:08 +0800)
Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
src/rgw/rgw_quota.cc

index 50dc53a55bb3a44e791ea236aa17b7fb1dd951bd..8e050a0592d68182f6a737d7be76c11b97c1154d 100644 (file)
@@ -512,6 +512,9 @@ class RGWUserStatsCache : public RGWQuotaCache<rgw_user> {
           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();