]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: fix crush tree json dumper 24482/head
authorsongshuangyang <songshuangyang@baidu.com>
Fri, 14 Sep 2018 06:53:17 +0000 (14:53 +0800)
committerPrashant D <pdhange@redhat.com>
Mon, 8 Oct 2018 21:40:36 +0000 (23:40 +0200)
commitd83005cc0ab9ce96a4a270eb6a809f6cea364ce7
tree41f3de95187e9bd683fb57afbd166f2f5b42b2c7
parent7266ce3d76736ce20bbe33c3a0387b0a6648f2ba
crush/CrushWrapper: fix crush tree json dumper

    The output json string is invalid for 'osd crush tree --format=json'
    command. It contains a array of 'nodes' and a array of 'stray', but
    not in a json object, and the stray array was not implemented.
    Applications which depends on the output of the above MonCommand will
    occur json parse error.

Signed-off-by: Oshyn Song <dualyangsong@gmail.com>
(cherry picked from commit 35c0d1f45cd676f201d4031cb8f447f7ea6aee0e)
src/crush/CrushWrapper.cc
src/mon/OSDMonitor.cc