From 9ffdc20ddd526b28a0b9fa97c3ae34fd3a1a2de3 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 6 Mar 2017 15:43:47 -0500 Subject: [PATCH] os/bluestore: drop unused OpSequencer::wait_for_wal_on_seq() Signed-off-by: Sage Weil --- src/os/bluestore/BlueStore.h | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index b1a070f8f72..0eb3725ae5e 100644 --- a/src/os/bluestore/BlueStore.h +++ b/src/os/bluestore/BlueStore.h @@ -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 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 { -- 2.39.5