]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/Watch: add consts to member functions 10251/head
authorMichal Jarzabek <stiopa@gmail.com>
Mon, 11 Jul 2016 22:18:21 +0000 (23:18 +0100)
committerMichal Jarzabek <stiopa@gmail.com>
Mon, 11 Jul 2016 22:18:21 +0000 (23:18 +0100)
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
src/osd/Watch.cc
src/osd/Watch.h

index 43846c03a16a8e1c3c580d5e20021651fe855508..4c6498e76a312e002b01872d12551474d85cf4a1 100644 (file)
@@ -422,7 +422,7 @@ void Watch::discard_state()
   obc = ObjectContextRef();
 }
 
-bool Watch::is_discarded()
+bool Watch::is_discarded() const
 {
   return discarded;
 }
index 79b58e0dc9e1c73a7742d21087db78e0ea68f895..86d12f21b83bbc597bc04526aafb8c6d8cbcce00 100644 (file)
@@ -197,10 +197,10 @@ public:
     return last_ping;
   }
 
-  bool is_connected() {
+  bool is_connected() const {
     return conn.get() != NULL;
   }
-  bool is_connected(Connection *con) {
+  bool is_connected(Connection *con) const {
     return conn.get() == con;
   }
 
@@ -248,7 +248,7 @@ public:
   void discard();
 
   /// True if removed or discarded
-  bool is_discarded();
+  bool is_discarded() const;
 
   /// Called on unwatch
   void remove(bool send_disconnect);