This was trying to check for standby replay
by testing is_readonly(), but that's always
true during normal replay. Check mds->is_standby_replay()
instead.
Signed-off-by: John Spray <john.spray@redhat.com>
r = journaler->get_error();
dout(0) << "_replay journaler got error " << r << ", aborting" << dendl;
if (r == -ENOENT) {
- if (journaler->is_readonly()) {
+ if (mds->is_standby_replay()) {
// journal has been trimmed by somebody else
r = -EAGAIN;
} else {