Hold journal_lock during replay so that we don't stomp on variables like
op_seq and open_ops that the the commit thread cares about.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
return err;
}
+ journal_lock.Lock();
+
replaying = true;
int count = 0;
}
open_ops++;
+ journal_lock.Unlock();
int r = do_transactions(tls, seq);
+ journal_lock.Lock();
open_ops--;
cond.Signal();
replaying = false;
+ journal_lock.Unlock();
+
// done reading, make writeable.
journal->make_writeable();