client: fix ancient typo in caps revocation path

If we have dropped all references to a revoked capability, send the ack
to the MDS.  This typo has been there since v0.7 (early 2009)!

Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
This commit is contained in:
Sage Weil 2013-06-15 08:48:37 -07:00
parent f179dc1f3d
commit b7143c2f84

View File

@ -2414,7 +2414,7 @@ void Client::check_caps(Inode *in, bool is_delayed)
}
/* completed revocation? */
if (revoking && (revoking && used) == 0) {
if (revoking && (revoking & used) == 0) {
ldout(cct, 10) << "completed revocation of " << ccap_string(cap->implemented & ~cap->issued) << dendl;
goto ack;
}