mirror of
https://github.com/ceph/ceph
synced 2025-01-10 13:10:46 +00:00
Merge pull request #27967 from liewegas/wip-fix-rgw-bias
rgw/rgw_tools: fix 'osd pool set' json syntax Reviewed-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
commit
f5c515e72a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user