From: Sage Weil Date: Mon, 6 Mar 2017 20:43:47 +0000 (-0500) Subject: os/bluestore: drop unused OpSequencer::wait_for_wal_on_seq() X-Git-Tag: v12.0.1~122^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9ffdc20ddd526b28a0b9fa97c3ae34fd3a1a2de3;p=ceph.git os/bluestore: drop unused OpSequencer::wait_for_wal_on_seq() Signed-off-by: Sage Weil --- diff --git a/src/os/bluestore/BlueStore.h b/src/os/bluestore/BlueStore.h index b1a070f8f72d..0eb3725ae5ed 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 {