diff mbox

[06/12] mds: Set metablob.renamed_dirino in do_rename_rollback()

Message ID 1349168152-13281-6-git-send-email-zheng.z.yan@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Yan, Zheng Oct. 2, 2012, 8:55 a.m. UTC
From: "Yan, Zheng" <zheng.z.yan@intel.com>

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
---
 src/mds/Server.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/src/mds/Server.cc b/src/mds/Server.cc
index 7659b23..e16800e 100644
--- a/src/mds/Server.cc
+++ b/src/mds/Server.cc
@@ -6395,8 +6395,11 @@  void Server::do_rename_rollback(bufferlist &rbl, int master, MDRequest *mdr)
     le->commit.add_null_dentry(straydn, true);
   }
 
-  if (in->is_dir())
+  if (in->is_dir()) {
+    dout(10) << " noting renamed dir ino " << in->ino() << " in metablob" << dendl;
+    le->commit.renamed_dirino = in->ino();
     mdcache->project_subtree_rename(in, destdir, srcdir);
+  }
   
   mdlog->submit_entry(le, new C_MDS_LoggedRenameRollback(this, mut, mdr,
 							 srcdnl->get_inode(), destdir));