dout(7) << "adjust_subtree_auth " << dir->get_dir_auth() << " -> " << auth
<< " on " << *dir << dendl;
- if (mds->is_replay() || mds->is_resolve())
+ if (mds->is_any_replay() || mds->is_resolve())
do_eval = false;
show_subtrees();
assert(subtrees.count(dir));
bool do_eval = true;
- if (mds->is_replay() || mds->is_resolve())
+ if (mds->is_any_replay() || mds->is_resolve())
do_eval = false;
// merge with parent?
void MDLog::submit_entry( LogEvent *le, Context *c, bool wait_safe )
{
- assert(!mds->is_replay());
+ assert(!mds->is_any_replay());
assert(le == cur_event);
cur_event = NULL;
if (is_active()) {
active_start();
- } else if (is_replay() || is_oneshot_replay() ||
- is_standby_replay()) {
+ } else if (is_any_replay()) {
replay_start();
} else if (is_resolve()) {
resolve_start();
}
case 3:
- if (is_replay() || is_oneshot_replay() || is_standby_replay()) {
+ if (is_any_replay()) {
dout(2) << "boot_start " << step << ": replaying mds log" << dendl;
if(is_oneshot_replay() || is_standby_replay())
mdlog->get_journaler()->set_readonly();
}
case 4:
- if (is_replay() || is_oneshot_replay() || is_standby_replay()) {
+ if (is_any_replay()) {
replay_done();
break;
}
bool is_stopping() { return state == MDSMap::STATE_STOPPING; }
bool is_oneshot_replay() { return state == MDSMap::STATE_ONESHOT_REPLAY; }
+ bool is_any_replay() { return (is_replay() || is_standby_replay() ||
+ is_oneshot_replay()); }
bool is_stopped() { return mdsmap->is_stopped(whoami); }