} else dout(15) << "attempt to remove lock at " << removal_lock.start
<< " but no locks there!" << dendl;
bool remove_to_end = (0 == removal_lock.length);
- bool old_lock_to_end;
uint64_t removal_start = removal_lock.start;
uint64_t removal_end = removal_start + removal_lock.length - 1;
uint64_t old_lock_end;
++iter) {
dout(15) << "self overlapping lock " << (*iter)->second << dendl;
old_lock = &(*iter)->second;
- old_lock_to_end = (0 == old_lock->length);
+ bool old_lock_to_end = (0 == old_lock->length);
old_lock_end = old_lock->start + old_lock->length - 1;
old_lock_client = old_lock->client;
if (remove_to_end) {
{
dout(15) << "adjust_locks" << dendl;
bool new_lock_to_end = (0 == new_lock.length);
- bool old_lock_to_end;
uint64_t new_lock_start = new_lock.start;
uint64_t new_lock_end = new_lock.start + new_lock.length - 1;
uint64_t old_lock_start, old_lock_end;
++iter) {
old_lock = &(*iter)->second;
dout(15) << "adjusting lock: " << *old_lock << dendl;
- old_lock_to_end = (0 == old_lock->length);
+ bool old_lock_to_end = (0 == old_lock->length);
old_lock_start = old_lock->start;
old_lock_end = old_lock->start + old_lock->length - 1;
new_lock_start = new_lock.start;