]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: fix crush tree json dumper 23979/head
authorsongshuangyang <songshuangyang@baidu.com>
Fri, 14 Sep 2018 06:53:17 +0000 (14:53 +0800)
committersongshuangyang <songshuangyang@baidu.com>
Fri, 14 Sep 2018 06:53:17 +0000 (14:53 +0800)
commit35c0d1f45cd676f201d4031cb8f447f7ea6aee0e
treea04fb731a97ac0cef41d12f8893b5e84f01b894d
parent33d0f57eeb4873ecb73cb3867387b8d0e9595197
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>
src/crush/CrushWrapper.cc
src/mon/OSDMonitor.cc