]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd: fixed initializer list ordering
authorJason Dillaman <dillaman@redhat.com>
Sat, 21 Jan 2017 14:17:36 +0000 (09:17 -0500)
committerJason Dillaman <dillaman@redhat.com>
Sat, 21 Jan 2017 14:17:36 +0000 (09:17 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ManagedLock.cc

index 21062bce454a660dc7624949909b1159b007f471..5861da7bd34a2c123d7ed6785f8bcdc30211e691 100644 (file)
@@ -51,14 +51,14 @@ ManagedLock<I>::ManagedLock(librados::IoCtx &ioctx, ContextWQ *work_queue,
                             bool blacklist_on_break_lock,
                             uint32_t blacklist_expire_seconds)
   : m_lock(unique_lock_name("librbd::ManagedLock<I>::m_lock", this)),
-    m_state(STATE_UNLOCKED),
     m_ioctx(ioctx), m_cct(reinterpret_cast<CephContext *>(ioctx.cct())),
     m_work_queue(work_queue),
     m_oid(oid),
     m_watcher(watcher),
     m_mode(mode),
     m_blacklist_on_break_lock(blacklist_on_break_lock),
-    m_blacklist_expire_seconds(blacklist_expire_seconds) {
+    m_blacklist_expire_seconds(blacklist_expire_seconds),
+    m_state(STATE_UNLOCKED) {
 }
 
 template <typename I>