- make the pop match position with the project in prepare
- don't pop on linkmerge, since we don't project in that case
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
}
} else if (destdnl->is_remote()) {
destdn->get_dir()->unlink_inode(destdn);
+ if (oldin->is_auth())
+ oldin->pop_and_dirty_projected_inode(mdr->ls);
}
}
dout(10) << "merging remote onto primary link" << dendl;
srcdn->get_dir()->unlink_inode(srcdn);
}
- if (destdnl->get_inode()->is_auth())
- destdnl->get_inode()->pop_and_dirty_projected_inode(mdr->ls);
} else {
if (linkmerge) {
dout(10) << "merging primary onto remote link" << dendl;