int next = m->starts_with;
- if (next == MDiscoverReply::INODE) {
+ if (!p.end() && next == MDiscoverReply::INODE) {
// add base inode
cur = add_replica_inode(p, NULL, finished);
dout(7) << "discover_reply got base inode " << *cur << dendl;
flag_error_dir(false),
dir_auth_hint(CDIR_AUTH_UNKNOWN) {
}
- const char *get_type_name() { return "DisR"; }
+ const char *get_type_name() { return "discover_reply"; }
+ void print(ostream& out) {
+ out << "discover_reply(" << base_ino << ")";
+ }
// builders
bool is_empty() {