]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: also dump realm in radosgw-admin sync status command 8030/head
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 10 Mar 2016 18:25:09 +0000 (10:25 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 10 Mar 2016 18:25:09 +0000 (10:25 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_admin.cc

index 4a5423d216f0abf62385ad91e8219cbdc0fe5db3..4ff679229a9aeb92c1f3a8fa04c2851c250b49de 100644 (file)
@@ -1874,11 +1874,13 @@ static void tab_dump(const string& header, int width, const list<string>& 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;