summaryrefslogtreecommitdiff
path: root/src/mds/Locker.cc
diff options
context:
space:
mode:
authorSage Weil <sage.weil@dreamhost.com>2011-07-22 08:51:04 -0700
committerSage Weil <sage.weil@dreamhost.com>2011-07-22 08:51:04 -0700
commitee20a8d98f9fc8c88214c91e5752e7b60e5792e9 (patch)
treea7e7d3089ab4c47e6766dd861d1f46bcc1f464a6 /src/mds/Locker.cc
parent1f479146caa8475294ad91c0ad8845d96179f557 (diff)
downloadceph-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.cc6
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++;
}