]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: remove unused condition variable 14973/head
authorIgor Fedotov <ifedotov@mirantis.com>
Fri, 5 May 2017 12:33:01 +0000 (15:33 +0300)
committerIgor Fedotov <ifedotov@mirantis.com>
Fri, 5 May 2017 12:33:01 +0000 (15:33 +0300)
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h

index f77b32eb3241b3b2335ca938e74b12d7b57dbd4d..b39e2b923f709b1d5817ba027007342375423398 100644 (file)
@@ -7939,7 +7939,6 @@ void BlueStore::_kv_sync_thread()
       if (kv_stop)
        break;
       dout(20) << __func__ << " sleep" << dendl;
-      kv_sync_cond.notify_all();
       kv_cond.wait(l);
       dout(20) << __func__ << " wake" << dendl;
     } else {
index 67b34dbaadac183e522e400c7d0286cfc66f19e2..50b3df8d70c74d258445ed881e84e170c97a0324 100644 (file)
@@ -1801,7 +1801,7 @@ private:
 
   KVSyncThread kv_sync_thread;
   std::mutex kv_lock;
-  std::condition_variable kv_cond, kv_sync_cond;
+  std::condition_variable kv_cond;
   bool kv_stop = false;
   deque<TransContext*> kv_queue;             ///< ready, already submitted
   deque<TransContext*> kv_queue_unsubmitted; ///< ready, need submit by kv thread