mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
rgw: break out of run_sync() if going down
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
parent
09d3cc7ba5
commit
8cb14783e4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user