From aa956b2de7402222d1dbb997457e15484e39cad7 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 4 Aug 2018 22:23:55 +0800 Subject: [PATCH] osd: make OSD::HEARTBEAT_MAX_CONN inline Signed-off-by: Kefu Chai --- src/osd/OSD.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/OSD.h b/src/osd/OSD.h index 5c703e448fe7a..e435b99000a71 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -1509,7 +1509,7 @@ private: utime_t last_rx_back; ///< last time we got a ping reply on the back side epoch_t epoch; ///< most recent epoch we wanted this peer /// number of connections we send and receive heartbeat pings/replies - const static int HEARTBEAT_MAX_CONN = 2; + static constexpr int HEARTBEAT_MAX_CONN = 2; /// history of inflight pings, arranging by timestamp we sent /// send time -> deadline -> remaining replies map> ping_history; -- 2.39.5