]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/rgw_tools: fix 'osd pool set' json syntax
authorSage Weil <sage@redhat.com>
Mon, 6 May 2019 01:29:17 +0000 (20:29 -0500)
committerSage Weil <sage@redhat.com>
Mon, 6 May 2019 01:31:09 +0000 (20:31 -0500)
Fixes af30e3a512dd1e5c51639d1f823b99ed9b43fb50

Signed-off-by: Sage Weil <sage@redhat.com>
src/rgw/rgw_tools.cc

index 1fb18aee8abacf5c97bec51118b0f731fd35c1ef..008d0986794cb1e6a4728da99ec8ef3b3eb8c439 100644 (file)
@@ -67,7 +67,7 @@ int rgw_init_ioctx(librados::Rados *rados, const rgw_pool& pool,
       float bias = g_conf().get_val<double>("rgw_rados_pool_autoscale_bias");
       int r = rados->mon_command(
        "{\"prefix\": \"osd pool set\", \"pool\": \"" +
-       pool.name + "\", \"var\": \"pg_autoscale_bias\": \"" +
+       pool.name + "\", \"var\": \"pg_autoscale_bias\", \"val\": \"" +
        stringify(bias) + "\"}",
        inbl, NULL, NULL);
       if (r < 0) {
@@ -78,7 +78,7 @@ int rgw_init_ioctx(librados::Rados *rados, const rgw_pool& pool,
       int min = g_conf().get_val<uint64_t>("rgw_rados_pool_pg_num_min");
       r = rados->mon_command(
        "{\"prefix\": \"osd pool set\", \"pool\": \"" +
-       pool.name + "\", \"var\": \"pg_num_min\": \"" +
+       pool.name + "\", \"var\": \"pg_num_min\", \"val\": \"" +
        stringify(min) + "\"}",
        inbl, NULL, NULL);
      if (r < 0) {