mirror of
https://github.com/ceph/ceph
synced 2025-03-06 08:20:12 +00:00
Merge pull request #6864 from scienceluo/wip-cleanup
osdmap: remove unused local variables Reviewed-by: Loic Dachary <ldachary@redhat.com>
This commit is contained in:
commit
54d6b47a09
@ -2775,8 +2775,6 @@ int OSDMap::build_simple_crush_map_from_conf(CephContext *cct,
|
||||
|
||||
crush.create();
|
||||
|
||||
set<string> hosts, racks;
|
||||
|
||||
// root
|
||||
int root_type = _build_crush_types(crush);
|
||||
int rootid;
|
||||
@ -2815,9 +2813,6 @@ int OSDMap::build_simple_crush_map_from_conf(CephContext *cct,
|
||||
if (rack.length() == 0)
|
||||
rack = "unknownrack";
|
||||
|
||||
hosts.insert(host);
|
||||
racks.insert(rack);
|
||||
|
||||
map<string,string> loc;
|
||||
loc["host"] = host;
|
||||
loc["rack"] = rack;
|
||||
|
Loading…
Reference in New Issue
Block a user