From: Sage Weil Date: Mon, 3 Aug 2009 21:25:16 +0000 (-0700) Subject: mds: issue caps on non-auth inodes X-Git-Tag: v0.12~25 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=84300ab6d1d29cb2dc484d12ec3361db5bc97d77;p=ceph.git mds: issue caps on non-auth inodes Not sure how that && is_auth() snuck in there. --- diff --git a/src/mds/CInode.cc b/src/mds/CInode.cc index 36a50e10218c..7c79f25bd443 100644 --- a/src/mds/CInode.cc +++ b/src/mds/CInode.cc @@ -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())