From: Casey Bodley Date: Thu, 12 May 2016 14:21:54 +0000 (-0400) Subject: radosgw-admin: 'zone create' doesn't need to load RGWRealm X-Git-Tag: v11.0.0~534^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6c05cd3b270bede0d155234b130beae9f695980c;p=ceph.git radosgw-admin: 'zone create' doesn't need to load RGWRealm Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 81d1062f46f..7dfbcb6412a 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -3281,12 +3281,6 @@ int main(int argc, char **argv) } if (!zonegroup_id.empty() || !zonegroup_name.empty()) { - RGWRealm realm(realm_id, realm_name); - ret = realm.init(g_ceph_context, store); - if (ret < 0) { - cerr << "ERROR: couldn't init realm:" << cpp_strerror(-ret) << std::endl; - return ret; - } ret = zonegroup.add_zone(zone, (is_master_set ? &is_master : NULL), (is_read_only_set ? &read_only : NULL),