mirror of
https://github.com/ceph/ceph
synced 2024-12-21 19:02:10 +00:00
Merge pull request #4993 from ceph/wip-12064
mon: only send MMonMetadata to peer mons that support it Reviewed-by: Joao Eduardo Luis <joao@suse.de>
This commit is contained in:
commit
fd610f2bc0
@ -63,6 +63,7 @@
|
||||
#define CEPH_FEATURE_OSD_MIN_SIZE_RECOVERY (1ULL<<49)
|
||||
// duplicated since it was introduced at the same time as MIN_SIZE_RECOVERY
|
||||
#define CEPH_FEATURE_OSD_PROXY_FEATURES (1ULL<<49) /* overlap w/ above */
|
||||
#define CEPH_FEATURE_MON_METADATA (1ULL<<50)
|
||||
|
||||
#define CEPH_FEATURE_RESERVED2 (1ULL<<61) /* slow down, we are almost out... */
|
||||
#define CEPH_FEATURE_RESERVED (1ULL<<62) /* DO NOT USE THIS ... last bit! */
|
||||
@ -148,6 +149,7 @@ static inline unsigned long long ceph_sanitize_features(unsigned long long f) {
|
||||
CEPH_FEATURE_MDS_QUOTA | \
|
||||
CEPH_FEATURE_CRUSH_V4 | \
|
||||
CEPH_FEATURE_OSD_MIN_SIZE_RECOVERY | \
|
||||
CEPH_FEATURE_MON_METADATA | \
|
||||
0ULL)
|
||||
|
||||
#define CEPH_FEATURES_SUPPORTED_DEFAULT CEPH_FEATURES_ALL
|
||||
|
@ -1881,10 +1881,12 @@ void Monitor::lose_election(epoch_t epoch, set<int> &q, int l, uint64_t features
|
||||
|
||||
finish_election();
|
||||
|
||||
Metadata sys_info;
|
||||
collect_sys_info(&sys_info, g_ceph_context);
|
||||
messenger->send_message(new MMonMetadata(sys_info),
|
||||
monmap->get_inst(get_leader()));
|
||||
if (quorum_features & CEPH_FEATURE_MON_METADATA) {
|
||||
Metadata sys_info;
|
||||
collect_sys_info(&sys_info, g_ceph_context);
|
||||
messenger->send_message(new MMonMetadata(sys_info),
|
||||
monmap->get_inst(get_leader()));
|
||||
}
|
||||
}
|
||||
|
||||
void Monitor::finish_election()
|
||||
|
Loading…
Reference in New Issue
Block a user