]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw-admin: 'zone create' doesn't need to load RGWRealm
authorCasey Bodley <cbodley@redhat.com>
Thu, 12 May 2016 14:21:54 +0000 (10:21 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 12 May 2016 19:24:06 +0000 (15:24 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_admin.cc

index 81d1062f46f17c4a10a994300cb79bfa0daf0a7a..7dfbcb6412a4f8c254d95e2cd2992af72324d899 100644 (file)
@@ -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),