]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/AsyncMessenger: add const to function 10114/head
authorMichal Jarzabek <stiopa@gmail.com>
Sat, 2 Jul 2016 16:02:36 +0000 (17:02 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Thu, 8 Sep 2016 19:58:20 +0000 (20:58 +0100)
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
src/msg/async/AsyncMessenger.cc
src/msg/async/AsyncMessenger.h

index a7270cd52c7126d4b039cbc0ef1c881ab03901c9..7104ddb0f09b27abb8e4cda7d7d459b314f4d8bf 100644 (file)
@@ -620,7 +620,7 @@ void AsyncMessenger::mark_down(const entity_addr_t& addr)
   lock.Unlock();
 }
 
-int AsyncMessenger::get_proto_version(int peer_type, bool connect)
+int AsyncMessenger::get_proto_version(int peer_type, bool connect) const
 {
   int my_type = my_inst.name.type();
 
index 47898f49d91d450a6b42be6f0c287e0d4387ded8..ee3e0285e83b6ab61c244b7296992edef07372f0 100644 (file)
@@ -388,7 +388,7 @@ public:
    * a peer protocol (if it matches our own), the protocol version for the
    * peer (if we're connecting), or our protocol version (if we're accepting).
    */
-  int get_proto_version(int peer_type, bool connect);
+  int get_proto_version(int peer_type, bool connect) const;
 
   /**
    * Fill in the address and peer type for the local connection, which