]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: fix inaccurate mon-num counting of 'ceph features' command
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 7 Aug 2017 11:41:35 +0000 (19:41 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 23 Aug 2017 02:28:34 +0000 (10:28 +0800)
commitd7edb43e9e12ca26c0816b077d36c06a9171a457
treefe71d59f51397b766864b5f3078300b34c1928c2
parent0bd2a07b18edbe5091ddd2a36a057cc7ad68186c
mon: fix inaccurate mon-num counting of 'ceph features' command

Monitors need to talk to each other, which causes the inaccurate
mon-num counting logic of 'ceph features' command.
E.g.:
(1) By specifying 2 monitors, you get 4 from 'ceph features':
    "mon": {
        "group": {
            "features": 2305244844532236283,
            "release": "luminous",
            "num": 4
        }
    },
(2) By specifying 3 monitors, you get 9 from 'ceph features':
   "mon": {
        "group": {
            "features": 2305244844532236283,
            "release": "luminous",
            "num": 9
        }
    },

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit dda5480d433053feec245a02c1fa419d7a1f4cff)
src/mon/Monitor.cc
src/mon/mon_types.h