]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: be extra careful
authorSage Weil <sage@newdream.net>
Thu, 10 Jun 2010 17:17:21 +0000 (10:17 -0700)
committerSage Weil <sage@newdream.net>
Thu, 10 Jun 2010 17:17:21 +0000 (10:17 -0700)
Probably implied by the refs == 0, but be explicit anyway.

src/mds/CDir.cc

index 2a0c8545fbb53726fe1212de2f1127af67ff6c79..27c16980881b03e1511d338282be1718c5f4414a 100644 (file)
@@ -1703,6 +1703,7 @@ void CDir::_committed(version_t v, version_t lrv)
        // drop clean null stray dentries immediately
        if (stray && 
            dn->get_num_ref() == 0 &&
+           !dn->is_projected() &&
            dn->get_linkage()->is_null())
          remove_dentry(dn);
       }