mirror of
https://github.com/ceph/ceph
synced 2025-02-21 18:17:42 +00:00
rgw: skip conversion of zones without any zoneparams
Fixes: http://tracker.ceph.com/issues/19231 Signed-off-by: Orit Wasserman <owasserm@redhat.com>
This commit is contained in:
parent
e9f3bf8eab
commit
36cf5a5c81
@ -3618,9 +3618,12 @@ int RGWRados::replace_region_with_zonegroup()
|
||||
zoneparams.set_id(iter->first);
|
||||
zoneparams.realm_id = realm.get_id();
|
||||
ret = zoneparams.init(cct, this);
|
||||
if (ret < 0) {
|
||||
if (ret < 0 && ret != -ENOENT) {
|
||||
ldout(cct, 0) << __func__ << " failed to init zoneparams " << iter->first << ": " << cpp_strerror(-ret) << dendl;
|
||||
return ret;
|
||||
} else if (ret == -ENOENT) {
|
||||
ldout(cct, 0) << __func__ << " zone is part of another cluster " << iter->first << " skipping " << dendl;
|
||||
continue;
|
||||
}
|
||||
zonegroup.realm_id = realm.get_id();
|
||||
ret = zoneparams.update();
|
||||
|
Loading…
Reference in New Issue
Block a user