]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: drop unused OpSequencer::wait_for_wal_on_seq() 13217/head
authorSage Weil <sage@redhat.com>
Mon, 6 Mar 2017 20:43:47 +0000 (15:43 -0500)
committerSage Weil <sage@redhat.com>
Tue, 7 Mar 2017 23:10:56 +0000 (18:10 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.h

index b1a070f8f72d78ba495d0d7b6645dc0251429694..0eb3725ae5ede7867d724af0e0e9cc945f4eb0d3 100644 (file)
@@ -1582,28 +1582,6 @@ public:
       txc->oncommits.push_back(c);
       return false;
     }
-
-    /// if there is a wal on @seq, wait for it to apply
-    void wait_for_wal_on_seq(uint64_t seq) {
-      std::unique_lock<std::mutex> l(qlock);
-      restart:
-      for (OpSequencer::q_list_t::reverse_iterator p = q.rbegin();
-          p != q.rend();
-          ++p) {
-       if (p->seq == seq) {
-         TransContext *txc = &(*p);
-         if (txc->wal_txn) {
-           while (txc->state < TransContext::STATE_WAL_CLEANUP) {
-             txc->osr->qcond.wait(l);
-             goto restart;  // txc may have gone away
-           }
-         }
-         break;
-       }
-       if (p->seq < seq)
-         break;
-      }
-    }
   };
 
   class WALWQ : public ThreadPool::WorkQueue<TransContext> {