Skip to content

Commit

Permalink
mds: handle Journaler::recover errors in PurgeQueue
Browse files Browse the repository at this point in the history
Signed-off-by: John Spray <john.spray@redhat.com>
  • Loading branch information
John Spray committed Mar 3, 2017
1 parent 6f807c6 commit 41ba7de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mds/PurgeQueue.cc
Expand Up @@ -136,13 +136,16 @@ void PurgeQueue::open(Context *completion)
dout(1) << "Purge Queue not found, assuming this is an upgrade and "
"creating it." << dendl;
create(completion);
} else {
} else if (r == 0) {
Mutex::Locker l(lock);
dout(4) << "open complete" << dendl;
if (r == 0) {
journaler.set_writeable();
}
completion->complete(r);
} else {
derr << "Error " << r << " loading Journaler" << dendl;
on_error->complete(0);
}
}));
}
Expand Down

0 comments on commit 41ba7de

Please sign in to comment.