From: "Yan, Zheng" <[email protected]>

The inode is linked to a non-auth directory, so remove it from LogSegment's
dirty inode list.

Signed-off-by: Yan, Zheng <[email protected]>
---
 src/mds/Server.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/mds/Server.cc b/src/mds/Server.cc
index 6dc3b9c..8080650 100644
--- a/src/mds/Server.cc
+++ b/src/mds/Server.cc
@@ -6345,7 +6345,10 @@ void Server::_logged_slave_rename(MDRequest *mdr,
     // remove mdr auth pin
     mdr->auth_unpin(srcdnl->get_inode());
     mdr->more()->is_inode_exporter = true;
-    
+
+    if (srcdnl->get_inode()->is_dirty())
+      srcdnl->get_inode()->mark_clean();
+
     dout(10) << " exported srci " << *srcdnl->get_inode() << dendl;
   }
 
-- 
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to