]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/crushtool: skip device id if no name exists 18901/head
authorJan Fajerski <jfajerski@suse.com>
Wed, 8 Nov 2017 09:30:09 +0000 (10:30 +0100)
committerJan Fajerski <jfajerski@suse.com>
Tue, 14 Nov 2017 11:46:12 +0000 (12:46 +0100)
commit85737f94571208f21c972c11530ab56bfaededa2
tree5c099ec579374f1bb1e6397efefa06d1cc785f0e
parent1ecc1883d79613dd5a63414bf34f7355aee73e8e
tools/crushtool: skip device id if no name exists

When an OSD with an id < max_id is removed, i.e. the osd ids are not
continuous, crushtool decompile prints bogus info. Skip any device ids
without a name.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/crush/CrushCompiler.cc
src/test/cli/osdmaptool/create-racks.t