diff options
author | Sage Weil <sage@inktank.com> | 2013-06-15 08:48:37 -0700 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-06-17 10:41:56 -0700 |
commit | b7143c2f84daafbe2c27d5b2a2d5dc40c3a68d15 (patch) | |
tree | 05c19e007158b2cfcb600564edcb467333ed30f4 | |
parent | f179dc1f3d7eb912639dfc1d10290fe00137f69f (diff) | |
download | ceph-b7143c2f84daafbe2c27d5b2a2d5dc40c3a68d15.tar.gz |
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>
-rw-r--r-- | src/client/Client.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/Client.cc b/src/client/Client.cc index 21cf2678607..a17254b60b5 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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; } |