os/bluestore: Call get_str_map under with_val

Another heap allocation bites the dust.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
This commit is contained in:
Adam C. Emerson 2017-11-20 16:14:18 -05:00
parent f26851b6d4
commit f6173b6a9c

View File

@ -4785,7 +4785,9 @@ int BlueStore::_open_db(bool create, bool to_repair_db)
options = cct->_conf->bluestore_rocksdb_options;
map<string,string> cf_map;
get_str_map(cct->_conf->get_val<string>("bluestore_rocksdb_cfs"), &cf_map,
cct->_conf->with_val<string>("bluestore_rocksdb_cfs",
get_str_map,
&cf_map,
" \t");
for (auto& i : cf_map) {
dout(10) << "column family " << i.first << ": " << i.second << dendl;