]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd: missing const qualifiers
authorMykola Golub <mgolub@mirantis.com>
Wed, 25 Jan 2017 21:29:41 +0000 (22:29 +0100)
committerMykola Golub <mgolub@mirantis.com>
Wed, 1 Feb 2017 09:55:03 +0000 (10:55 +0100)
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/librbd/ManagedLock.h

index 075b8f758495c6f9a63da3328bcd75a35dc6292b..390a4bd4f1d65e6056f8adc30c4a4957f6790185 100644 (file)
@@ -112,12 +112,12 @@ protected:
     assert(m_lock.is_locked());
     return m_state == STATE_LOCKED;
   }
-  inline bool is_state_waiting_for_lock() {
+  inline bool is_state_waiting_for_lock() const {
     assert(m_lock.is_locked());
     return m_state == STATE_WAITING_FOR_LOCK;
   }
 
-  inline bool is_action_acquire_lock() {
+  inline bool is_action_acquire_lock() const {
     assert(m_lock.is_locked());
     return get_active_action() == ACTION_ACQUIRE_LOCK;
   }