]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushCompiler: error out as long as parse fails
authorKefu Chai <kchai@redhat.com>
Tue, 20 Sep 2016 06:10:16 +0000 (14:10 +0800)
committerLoic Dachary <ldachary@redhat.com>
Mon, 13 Feb 2017 05:49:27 +0000 (06:49 +0100)
commitd92738c0c9491c97fd189ff49ca57427316b9eb7
treed11d35aa5e741886b46d578ddcffd4c8deea76bb
parent8c87d0927447233697d623c995163fde25524fa5
crush/CrushCompiler: error out as long as parse fails

do not output compiled crush map if anything goes wrong when parsing
crush map.

Fixes: http://tracker.ceph.com/issues/17306
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit b2c0a079dc074c907e1bc429861230096534f597)
src/crush/CrushCompiler.cc
src/test/cli/crushtool/compile-decompile-recompile.t
src/test/cli/crushtool/missing-bucket.crushmap.txt [new file with mode: 0644]