]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
add stray_prior_path to store path before rename
authorJashan Kamboj <jashank42@gmail.com>
Tue, 28 Jul 2015 19:07:34 +0000 (00:37 +0530)
committerSage Weil <sage@redhat.com>
Thu, 1 Oct 2015 13:39:34 +0000 (09:39 -0400)
Signed-off-by: Jashan Kamboj <jashank42@gmail.com>
src/mds/Server.cc

index d5c59e4a4a9025181078a6aba732858dc50ba713..acc2965c820d80476ac3da0d5a575dee56841e97 100644 (file)
@@ -6597,6 +6597,7 @@ void Server::_rename_prepare(MDRequestRef& mdr,
     }
     if (tpi) {
       tpi->ctime = mdr->get_op_stamp();
+      destdn->make_path_string(tpi->stray_prior_path);
       tpi->nlink--;
       if (tpi->nlink == 0)
        oldin->state_set(CInode::STATE_ORPHAN);