]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: disable empty directory fastpath check
authorSage Weil <sage@newdream.net>
Thu, 15 Jan 2009 18:05:50 +0000 (10:05 -0800)
committerSage Weil <sage@newdream.net>
Thu, 15 Jan 2009 18:05:50 +0000 (10:05 -0800)
We need to look at the _projected_ directory size for this to work.
Until then, disable the fastpath check.

src/mds/Server.cc

index 031ffbccd161387fdfe5e1c30304694568342a53..674fdcc4b32239ad6908e98291a992f465715a68 100644 (file)
@@ -3366,7 +3366,8 @@ bool Server::_dir_is_nonempty(MDRequest *mdr, CInode *in)
     assert(dir);
 
     // does the frag _look_ empty?
-    if (dir->get_num_head_items()) {
+    if (false &&  // FIXME: need to look at _projected_ directory size.
+       dir->get_num_head_items()) {
       dout(10) << "dir_is_nonempty still " << dir->get_num_head_items() 
               << " cached items in frag " << *dir << dendl;
       reply_request(mdr, -ENOTEMPTY);