mirror of
https://github.com/ceph/ceph
synced 2025-01-03 17:42:36 +00:00
mds: locking. Fix waiting lock count map deletion
This commit is contained in:
parent
8d85f34434
commit
c0eccba39b
@ -506,7 +506,7 @@ struct ceph_lock_state_t {
|
||||
ceph_filelock cur_lock = (*iter)->second;
|
||||
waiting_locks.erase(*iter);
|
||||
--client_waiting_lock_counts[cur_lock.client];
|
||||
if (!client_waiting_lock_counts.count(cur_lock.client)) {
|
||||
if (!client_waiting_lock_counts[cur_lock.client]) {
|
||||
client_waiting_lock_counts.erase(cur_lock.client);
|
||||
}
|
||||
if(add_lock(cur_lock, true)) activated_locks.push_back(cur_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user