mds: fix scatterlock lease revocation

This commit is contained in:
Sage Weil 2008-03-28 10:48:33 -07:00
parent 43ef12d03d
commit d8708bbca4
2 changed files with 3 additions and 0 deletions

View File

@ -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);

View File

@ -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())