rgw: break out of run_sync() if going down

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
Yehuda Sadeh 2016-03-21 16:48:01 -07:00
parent 09d3cc7ba5
commit 8cb14783e4

View File

@ -1878,6 +1878,10 @@ int RGWRemoteMetaLog::run_sync()
}
do {
if (going_down.read()) {
ldout(store->ctx(), 1) << __func__ << "(): going down" << dendl;
return 0;
}
r = run(new RGWReadSyncStatusCoroutine(&sync_env, obj_ctx, &sync_status));
if (r < 0 && r != -ENOENT) {
ldout(store->ctx(), 0) << "ERROR: failed to fetch sync status r=" << r << dendl;