]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: make OSD::HEARTBEAT_MAX_CONN inline 23424/head
authorKefu Chai <kchai@redhat.com>
Sat, 4 Aug 2018 14:23:55 +0000 (22:23 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 4 Aug 2018 14:24:13 +0000 (22:24 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/OSD.h

index 5c703e448fe7a06af4055e90f5c0b325d62af5e4..e435b99000a715df4aa0235d3795b75c6fc4e313 100644 (file)
@@ -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<utime_t, pair<utime_t, int>> ping_history;