This should only occur with the root inode, but caused a segfault for
anybody running more than one MDS who restarted.
Signed-off-by: Greg Farnum <gregf@hq.newdream.net>
in->close_dirfrag((*p)->dirfrag().frag);
}
dout(0) << " ... " << *in << dendl;
- warn_string_dirs << in->get_parent_dn()->get_name() << std::endl;
+ if (in->get_parent_dn())
+ warn_string_dirs << in->get_parent_dn()->get_name() << std::endl;
assert(in->get_num_ref() == 0);
remove_inode(in);
}