the backport http://tracker.ceph.com/issues/26979 missed a block of code
to handle ENOENT on bucket sync disable
Signed-off-by: Casey Bodley <cbodley@redhat.com>
do {
if (sync_status.state == rgw_bucket_shard_sync_info::StateInit) {
yield call(new RGWInitBucketShardSyncStatusCoroutine(sync_env, bs, sync_status));
+ if (retcode == -ENOENT) {
+ ldout(sync_env->cct, 0) << "bucket sync disabled" << dendl;
+ lease_cr->abort(); // deleted lease object, abort instead of unlock
+ drain_all();
+ return set_cr_done();
+ }
if (retcode < 0) {
ldout(sync_env->cct, 0) << "ERROR: init sync on " << bucket_shard_str{bs}
<< " failed, retcode=" << retcode << dendl;