diff options
author | Sage Weil <sage.weil@dreamhost.com> | 2011-07-22 08:51:04 -0700 |
---|---|---|
committer | Sage Weil <sage.weil@dreamhost.com> | 2011-07-22 08:51:04 -0700 |
commit | ee20a8d98f9fc8c88214c91e5752e7b60e5792e9 (patch) | |
tree | a7e7d3089ab4c47e6766dd861d1f46bcc1f464a6 /src/mds/Locker.cc | |
parent | 1f479146caa8475294ad91c0ad8845d96179f557 (diff) | |
download | ceph-ee20a8d98f9fc8c88214c91e5752e7b60e5792e9.tar.gz |
mds: cleanup-let: use is_leased() for lease revocation checks
And add const-ness.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Diffstat (limited to 'src/mds/Locker.cc')
-rw-r--r-- | src/mds/Locker.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mds/Locker.cc b/src/mds/Locker.cc index 7a61d157996..642caa83b60 100644 --- a/src/mds/Locker.cc +++ b/src/mds/Locker.cc @@ -3345,7 +3345,7 @@ void Locker::simple_lock(SimpleLock *lock, bool *need_issue) } int gather = 0; - if (lock->get_num_client_lease()) { + if (lock->is_leased()) { gather++; revoke_client_leases(lock); } @@ -4013,7 +4013,7 @@ void Locker::scatter_mix(ScatterLock *lock, bool *need_issue) gather++; } } - if (lock->get_num_client_lease()) { + if (lock->is_leased()) { revoke_client_leases(lock); gather++; } @@ -4081,7 +4081,7 @@ void Locker::file_excl(ScatterLock *lock, bool *need_issue) lock->init_gather(); gather++; } - if (lock->get_num_client_lease()) { + if (lock->is_leased()) { revoke_client_leases(lock); gather++; } |