The master branch has an async JournalTrimmer which shouldn't be
backported to the Jewel branch yet. This change addresses the
missing sync AsyncOpTracker::wait_for_ops method from the backported
class.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
int JournalTrimmer::remove_objects(bool force) {
ldout(m_cct, 20) << __func__ << dendl;
- m_async_op_tracker.wait_for_ops();
+ C_SaferCond ops_ctx;
+ m_async_op_tracker.wait_for_ops(&ops_ctx);
+ ops_ctx.wait();
C_SaferCond ctx;
{