]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushCompiler: error out as long as parse fails 11931/head
authorKefu Chai <kchai@redhat.com>
Tue, 20 Sep 2016 06:10:16 +0000 (14:10 +0800)
committerNathan Cutler <ncutler@suse.com>
Sat, 12 Nov 2016 13:31:11 +0000 (14:31 +0100)
commit7ad7de69631372ef364d19bf023e7dba3c88092c
tree94fa5726764d869141c436ef6cb551de59029943
parentf776699fd00ff5f0deea15ec4f2efb991831b055
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)

Conflicts:
    src/test/cli/crushtool/compile-decompile-recompile.t (hammer needs $TESTDIR/ prefix)
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]