From f6173b6a9c1d30878ddb08f8498a3bfa8bb6ad3c Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Mon, 20 Nov 2017 16:14:18 -0500 Subject: [PATCH] os/bluestore: Call get_str_map under with_val Another heap allocation bites the dust. Signed-off-by: Adam C. Emerson --- src/os/bluestore/BlueStore.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index 04cdedb95733..db500c5d6f75 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -4785,8 +4785,10 @@ int BlueStore::_open_db(bool create, bool to_repair_db) options = cct->_conf->bluestore_rocksdb_options; map cf_map; - get_str_map(cct->_conf->get_val("bluestore_rocksdb_cfs"), &cf_map, - " \t"); + cct->_conf->with_val("bluestore_rocksdb_cfs", + get_str_map, + &cf_map, + " \t"); for (auto& i : cf_map) { dout(10) << "column family " << i.first << ": " << i.second << dendl; cfs.push_back(KeyValueDB::ColumnFamily(i.first, i.second)); -- 2.47.3