]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix radosgw-admin zone/zonegroup placement get command 30880/head
authorjiahuizeng <jhzeng93@foxmail.com>
Thu, 24 Oct 2019 03:32:38 +0000 (11:32 +0800)
committerjiahuizeng <jhzeng93@foxmail.com>
Thu, 24 Oct 2019 03:32:38 +0000 (11:32 +0800)
Signed-off-by: jiahuizeng <jhzeng93@foxmail.com>
src/rgw/rgw_admin.cc

index f84955f785590e12aafc0e6c1aece55ff224303f..2e811d1a04bf87476a736462482a5b33667050cd 100644 (file)
@@ -4312,7 +4312,7 @@ int main(int argc, const char **argv)
        }
 
        RGWZoneGroup zonegroup(zonegroup_id, zonegroup_name);
-       int ret = zonegroup.init(g_ceph_context, store);
+       int ret = zonegroup.init(g_ceph_context, store->svc()->sysobj);
        if (ret < 0) {
          cerr << "failed to init zonegroup: " << cpp_strerror(-ret) << std::endl;
          return -ret;
@@ -4325,7 +4325,6 @@ int main(int argc, const char **argv)
        }
        encode_json("placement_targets", p->second, formatter);
        formatter->flush(cout);
-       cout << std::endl;
       }
       break;
     case OPT_ZONEGROUP_PLACEMENT_ADD:
@@ -4912,7 +4911,7 @@ int main(int argc, const char **argv)
        }
 
        RGWZoneParams zone(zone_id, zone_name);
-       int ret = zone.init(g_ceph_context, store);
+       int ret = zone.init(g_ceph_context, store->svc()->sysobj);
        if (ret < 0) {
          cerr << "unable to initialize zone: " << cpp_strerror(-ret) << std::endl;
          return -ret;