From: Yehuda Sadeh Date: Thu, 10 Mar 2016 18:25:09 +0000 (-0800) Subject: rgw: also dump realm in radosgw-admin sync status command X-Git-Tag: v10.1.0~140^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c85573adfa60858132ee13844f50c54ba02a243e;p=ceph.git rgw: also dump realm in radosgw-admin sync status command Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 4a5423d216f0..4ff679229a9a 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -1874,11 +1874,13 @@ static void tab_dump(const string& header, int width, const list& entrie static void sync_status(Formatter *formatter) { - RGWZoneGroup zonegroup = store->get_zonegroup(); + RGWRealm& realm = store->realm; + RGWZoneGroup& zonegroup = store->get_zonegroup(); RGWZone& zone = store->get_zone(); int width = 15; + cout << std::setw(width) << "realm" << std::setw(1) << " " << realm.get_id() << " (" << realm.get_name() << ")" << std::endl; cout << std::setw(width) << "zonegroup" << std::setw(1) << " " << zonegroup.get_id() << " (" << zonegroup.get_name() << ")" << std::endl; cout << std::setw(width) << "zone" << std::setw(1) << " " << zone.id << " (" << zone.name << ")" << std::endl;