mirror of
https://github.com/ceph/ceph
synced 2025-01-25 04:24:24 +00:00
mds: fix scatterlock lease revocation
This commit is contained in:
parent
43ef12d03d
commit
d8708bbca4
@ -1696,6 +1696,7 @@ bool Locker::scatter_wrlock_start(ScatterLock *lock, MDRequest *mdr)
|
||||
!lock->get_parent()->is_replicated() &&
|
||||
!lock->is_rdlocked() &&
|
||||
!lock->is_xlocked() &&
|
||||
lock->get_num_client_lease() == 0 &&
|
||||
lock->get_state() == LOCK_SYNC)
|
||||
lock->set_state(LOCK_SCATTER);
|
||||
//scatter_scatter(lock);
|
||||
|
@ -167,6 +167,8 @@ public:
|
||||
out << get_lock_type_name(get_type()) << " ";
|
||||
out << get_scatterlock_state_name(get_state());
|
||||
if (!get_gather_set().empty()) out << " g=" << get_gather_set();
|
||||
if (get_num_client_lease())
|
||||
out << " c=" << get_num_client_lease();
|
||||
if (is_rdlocked())
|
||||
out << " r=" << get_num_rdlocks();
|
||||
if (is_xlocked())
|
||||
|
Loading…
Reference in New Issue
Block a user