diff options
Diffstat (limited to 'src/collection/utils.rs')
| -rw-r--r-- | src/collection/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/collection/utils.rs b/src/collection/utils.rs index 7f29037..d6d50f4 100644 --- a/src/collection/utils.rs +++ b/src/collection/utils.rs @@ -109,7 +109,7 @@ pub unsafe fn attempt_to_recover_reads_from_panic(locked: &[&dyn RawLock]) { handle_unwind( || { // safety: the caller assumes these are already locked - locked.iter().for_each(|lock| lock.raw_unlock()); + locked.iter().for_each(|lock| lock.raw_unlock_read()); }, // if we get another panic in here, we'll just have to poison what remains || locked.iter().for_each(|l| l.poison()), |
