]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: Remove the I_COMPLETE flag from the parent directory in relink_inode.
authorGreg Farnum <gregf@hq.newdream.net>
Wed, 17 Nov 2010 17:58:38 +0000 (09:58 -0800)
committerGreg Farnum <gregf@hq.newdream.net>
Wed, 17 Nov 2010 17:58:38 +0000 (09:58 -0800)
This papers over issues arising from the client's lack of proper support
for hard links, and lets it pass the snaptest-upchildrealms test.

src/client/Client.h

index 13aae7926a9af66a9b2d0175bf6f6f6dbec19e41..860e9f82d5d91bdff39e8f879350c7de73b29760 100644 (file)
@@ -1022,6 +1022,9 @@ protected:
     // unlink old dn from dir
     olddir->dentries.erase(olddn->name);
     olddir->dentry_map.erase(olddn->name);
+    // HACK: in the case of hard links. Resolving #588 should include
+    // rendering this unnecessary.
+    olddir->parent_inode->flags &= ~I_COMPLETE;
     olddn->inode = 0;
     olddn->dir = 0;
     lru.lru_remove(olddn);