From: Patrick Donnelly Date: Sat, 11 Aug 2018 23:10:28 +0000 (-0700) Subject: mds: mark beacons as high priority X-Git-Tag: v13.2.2~76^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=536e6489a8f393d32339f04e8e7382f6ff150aeb;p=ceph.git mds: mark beacons as high priority The mons already mark beacon replies as high priority (via default mon message priority). We should expect that the mons handle our beacons at the same priority so the MDS doesn't wrongly get marked laggy. Fixes: http://tracker.ceph.com/issues/26899 Signed-off-by: Patrick Donnelly (cherry picked from commit ec3fa7b5658cc61706e17c8c56e0c7da5062aa34) --- diff --git a/src/messages/MMDSBeacon.h b/src/messages/MMDSBeacon.h index 44a3eb9c63c..e88d0b2869d 100644 --- a/src/messages/MMDSBeacon.h +++ b/src/messages/MMDSBeacon.h @@ -204,13 +204,15 @@ class MMDSBeacon : public PaxosServiceMessage { : PaxosServiceMessage(MSG_MDS_BEACON, 0, HEAD_VERSION, COMPAT_VERSION), global_id(0), state(MDSMap::STATE_NULL), standby_for_rank(MDS_RANK_NONE), standby_for_fscid(FS_CLUSTER_ID_NONE), standby_replay(false), - mds_features(0) - { } + mds_features(0) { + set_priority(CEPH_MSG_PRIO_HIGH); + } MMDSBeacon(const uuid_d &f, mds_gid_t g, string& n, epoch_t les, MDSMap::DaemonState st, version_t se, uint64_t feat) : PaxosServiceMessage(MSG_MDS_BEACON, les, HEAD_VERSION, COMPAT_VERSION), fsid(f), global_id(g), name(n), state(st), seq(se), standby_for_rank(MDS_RANK_NONE), standby_for_fscid(FS_CLUSTER_ID_NONE), standby_replay(false), mds_features(feat) { + set_priority(CEPH_MSG_PRIO_HIGH); } private: ~MMDSBeacon() override {}