]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: set dirfrag version when fetching dirfrag is skipped 3071/head
authorYan, Zheng <zyan@redhat.com>
Wed, 10 Dec 2014 03:05:02 +0000 (11:05 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 10 Dec 2014 03:32:43 +0000 (11:32 +0800)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/erasure-code/jerasure/gf-complete
src/mds/CDir.cc

index 191e7105b2b75f7f48ef23dfab9ae72275363168..70dd94ae38f2d20dd78532a6dfd1310fdfb4a884 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 191e7105b2b75f7f48ef23dfab9ae72275363168
+Subproject commit 70dd94ae38f2d20dd78532a6dfd1310fdfb4a884
index b96b8ea8922b4ed33848aa07e77c84de4c4fb5ef..eb33cbd1b05ed5b32003d018c22b3802fa4de273 100644 (file)
@@ -1381,6 +1381,8 @@ void CDir::fetch(MDSInternalContextBase *c, const string& want_dn, bool ignore_a
   // unlinked directory inode shouldn't have any entry
   if (inode->inode.nlink == 0) {
     dout(7) << "fetch dirfrag for unlinked directory, mark complete" << dendl;
+    if (get_version() == 0)
+      set_version(1);
     mark_complete();
     if (c)
       cache->mds->queue_waiter(c);