summaryrefslogtreecommitdiff
path: root/src/collection/retry.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2025-03-12 22:19:38 -0400
committerMica White <botahamec@outlook.com>2025-03-12 22:19:38 -0400
commitf347b3e7ca771f11a21d2f6e54c0d97796174d37 (patch)
tree6776aa84a0fb91f5619f9669f083e0316f0526b9 /src/collection/retry.rs
parent58abf5872023aca7ee6459fa3b2e067d57923ba5 (diff)
Add unwind handling for scoped locks
Diffstat (limited to 'src/collection/retry.rs')
-rw-r--r--src/collection/retry.rs4
1 files changed, 3 insertions, 1 deletions
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<L: Lockable> Lockable for RetryingLockCollection<L> {
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<'_> {