To avoid temporary heap allocations.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
map<string,string> *erasure_code_profile_map,
ostream *ss)
{
- int r = get_json_str_map(g_conf->get_val<string>("osd_pool_default_erasure_code_profile"),
- *ss,
- erasure_code_profile_map);
+ int r = g_conf->with_val<string>("osd_pool_default_erasure_code_profile",
+ get_json_str_map,
+ *ss,
+ erasure_code_profile_map,
+ true);
if (r)
return r;
assert((*erasure_code_profile_map).count("plugin"));