Skip to content

Commit

Permalink
Merge pull request #16150 from Vicente-Cheng/wip-20403-jewel
Browse files Browse the repository at this point in the history
jewel: mds: save  projected path into inode_t::stray_prior_path

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
  • Loading branch information
smithfarm committed Sep 4, 2017
2 parents b6b08b7 + 6b6620f commit d639aa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mds/Server.cc
Expand Up @@ -5588,7 +5588,7 @@ void Server::_unlink_local(MDRequestRef& mdr, CDentry *dn, CDentry *straydn)
dn->pre_dirty();

inode_t *pi = in->project_inode();
dn->make_path_string(pi->stray_prior_path);
dn->make_path_string(pi->stray_prior_path, true);
mdr->add_projected_inode(in); // do this _after_ my dn->pre_dirty().. we apply that one manually.
pi->version = in->pre_dirty();
pi->ctime = mdr->get_op_stamp();
Expand Down Expand Up @@ -6778,7 +6778,7 @@ void Server::_rename_prepare(MDRequestRef& mdr,
}
if (tpi) {
tpi->ctime = mdr->get_op_stamp();
destdn->make_path_string(tpi->stray_prior_path);
destdn->make_path_string(tpi->stray_prior_path, true);
tpi->nlink--;
if (tpi->nlink == 0)
oldin->state_set(CInode::STATE_ORPHAN);
Expand Down

0 comments on commit d639aa9

Please sign in to comment.