[libos] Fix the iterator index when unlock range lock
This commit is contained in:
parent
115b827f68
commit
f71e940cfd
@ -315,7 +315,8 @@ impl RangeLockList {
|
|||||||
.skip(skipped)
|
.skip(skipped)
|
||||||
.position(|lk| lk.owner() == lock.owner())
|
.position(|lk| lk.owner() == lock.owner())
|
||||||
{
|
{
|
||||||
Some(idx) => idx,
|
// (idx + skipped) is the original position in list
|
||||||
|
Some(idx) => idx + skipped,
|
||||||
None => break,
|
None => break,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user