From: Jos Collin Date: Wed, 19 Apr 2017 02:53:04 +0000 (+0530) Subject: osd: renamed the new vector name in OSDMap::build_simple_crush_map_from_conf X-Git-Tag: v12.0.3~292^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b985d1e6a2924dc8c3ec82b861df005768081cb9;p=ceph.git osd: renamed the new vector name in OSDMap::build_simple_crush_map_from_conf Renamed the new vector name in OSDMap::build_simple_crush_map_from_conf, to avoid confusing it with the sections vector outside the for loop and which is iterating. Resolved merge conflicts. Signed-off-by: Jos Collin --- diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index 6ea693ec1a5..158250444cc 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -3087,15 +3087,15 @@ int OSDMap::build_simple_crush_map_from_conf(CephContext *cct, continue; string host, rack, row, room, dc, pool; - vector section; - section.push_back("osd"); - section.push_back(*i); - conf->get_val_from_conf_file(section, "host", host, false); - conf->get_val_from_conf_file(section, "rack", rack, false); - conf->get_val_from_conf_file(section, "row", row, false); - conf->get_val_from_conf_file(section, "room", room, false); - conf->get_val_from_conf_file(section, "datacenter", dc, false); - conf->get_val_from_conf_file(section, "root", pool, false); + vector sectiontmp; + sectiontmp.push_back("osd"); + sectiontmp.push_back(section); + conf->get_val_from_conf_file(sectiontmp, "host", host, false); + conf->get_val_from_conf_file(sectiontmp, "rack", rack, false); + conf->get_val_from_conf_file(sectiontmp, "row", row, false); + conf->get_val_from_conf_file(sectiontmp, "room", room, false); + conf->get_val_from_conf_file(sectiontmp, "datacenter", dc, false); + conf->get_val_from_conf_file(sectiontmp, "root", pool, false); if (host.length() == 0) host = "unknownhost";