]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: assert auth on journal_cow_dentry
authorSage Weil <sage@newdream.net>
Fri, 6 May 2011 20:15:03 +0000 (13:15 -0700)
committerSage Weil <sage@newdream.net>
Fri, 6 May 2011 20:15:18 +0000 (13:15 -0700)
We have no business doing cow (or journaling) non-auth dentries.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/MDCache.cc

index bf81d281914b14e59e33df502c3a95a69d28f3bb..521be12a7a95d6d0960a013ff219e95c1d1579a0 100644 (file)
@@ -1448,6 +1448,7 @@ void MDCache::journal_cow_dentry(Mutation *mut, EMetaBlob *metablob, CDentry *dn
     return;
   }
   dout(10) << "journal_cow_dentry follows " << follows << " on " << *dn << dendl;
+  assert(dn->is_auth());
 
   // nothing to cow on a null dentry, fix caller
   if (!dnl)