]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: issue caps on non-auth inodes
authorSage Weil <sage@newdream.net>
Mon, 3 Aug 2009 21:25:16 +0000 (14:25 -0700)
committerSage Weil <sage@newdream.net>
Tue, 4 Aug 2009 22:33:35 +0000 (15:33 -0700)
Not sure how that && is_auth() snuck in there.

src/mds/CInode.cc

index 36a50e10218c474d292da68c4baf17aa464b4c57..7c79f25bd443f7449483d1d4e2c1514d251ac81e 100644 (file)
@@ -1534,7 +1534,8 @@ bool CInode::encode_inodestat(bufferlist& bl, Session *session,
   i->ctime.encode_timeval(&e.ctime);
   
   dout(20) << " pfile " << pfile << " pauth " << pauth << " plink " << plink << " pxattr " << pxattr
-          << " ctime " << i->ctime << dendl;
+          << " ctime " << i->ctime
+          << " valid=" << valid << dendl;
 
   i = pfile ? pi:oi;
   e.layout = i->layout;
@@ -1589,7 +1590,7 @@ bool CInode::encode_inodestat(bufferlist& bl, Session *session,
     e.cap.mseq = 0;
     e.cap.realm = 0;
   } else {
-    if (!no_caps && valid && !cap && is_auth()) {
+    if (!no_caps && valid && !cap) {
       // add a new cap
       cap = add_client_cap(client, session, find_snaprealm());
       if (is_auth())