]> git-server-git.apps.pok.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)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 8 Aug 2017 07:54:09 +0000 (15:54 +0800)
commitdda5480d433053feec245a02c1fa419d7a1f4cff
tree4ba71a6b25d0b2b052d3d8a488ba0e0dff5cfd26
parentbdaf63e2951e0d23440c19c3ab075e48cf65132b
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>
src/mon/Monitor.cc
src/mon/mon_types.h