From f347b3e7ca771f11a21d2f6e54c0d97796174d37 Mon Sep 17 00:00:00 2001 From: Mica White Date: Wed, 12 Mar 2025 22:19:38 -0400 Subject: Add unwind handling for scoped locks --- src/collection/retry.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/collection/retry.rs') diff --git a/src/collection/retry.rs b/src/collection/retry.rs index 70e5183..15f626d 100644 --- a/src/collection/retry.rs +++ b/src/collection/retry.rs @@ -244,7 +244,9 @@ unsafe impl Lockable for RetryingLockCollection { Self: 'a; fn get_ptrs<'a>(&'a self, ptrs: &mut Vec<&'a dyn RawLock>) { - ptrs.push(self) + // this collection, just like the sorting collection, must return all of its + // locks in order to check for duplication + self.data.get_ptrs(ptrs) } unsafe fn guard(&self) -> Self::Guard<'_> { -- cgit v1.2.3