]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Fixed the ceph get mdsmap assertion. 7542/head
authorVicente Cheng <freeze.bilsted@gmail.com>
Fri, 27 Mar 2015 10:49:28 +0000 (18:49 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 5 Feb 2016 23:11:30 +0000 (00:11 +0100)
commitb9a4ad9da99d82bd247e5d39108840f19535fa5e
tree127a66b27be1ecaa4b5b9ddbe9cc368a0304633e
parent2f4e1d1ff8e91fc2ee9c23d5a17c3174d15a7103
Fixed the ceph get mdsmap assertion.

    When we want to get mdsmap, we try to get_version()
    and the return value err = 0 means success.

    The assert verified r == 0. r would not change in this flow.
    It always meet assert and lead mon failure.

    I think this verify should be:
        assert(err == 0)
    It will help to check return value of get_version().

If you have any questions, feel free to let me know.
Thanks!

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
(cherry picked from commit f4398d2e6c245e3f81a6038425e1b8372b265b8c)
src/mon/MDSMonitor.cc