Merge pull request #16854 from yaozongyou/fix-rgw-not-responding

rgw: fix not responding when receiving SIGHUP signal.

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
This commit is contained in:
Yuri Weinstein 2017-08-08 09:40:31 -07:00 committed by GitHub
commit 88c1d6b472

View 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();