mds: locking. Compare iterator to right list!

This commit is contained in:
Greg Farnum 2010-05-17 15:17:28 -07:00
parent c0eccba39b
commit eb669ad2f1

View File

@ -783,7 +783,7 @@ private:
bool cont = iter != waiting_locks.end();
while(cont) {
if (share_space(iter, lock)) overlaps.push_front(iter);
if (held_locks.begin() == iter) cont = false;
if (waiting_locks.begin() == iter) cont = false;
--iter;
}
return !overlaps.empty();