-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Implement EventCacheStoreLock::lock()
with poison error, and ::lock_unchecked
#4285
base: main
Are you sure you want to change the base?
Commits on Nov 18, 2024
-
feat: Event cache lock has a _generation_ value.
This patch introduces the _generation_ value for the event cache lock: every time the lock is acquired by a new holder, the generation is incremented by 1. This is fundamental to know if the lock has been poisoned or not.
Configuration menu - View commit details
-
Copy full SHA for b06dac3 - Browse repository at this point
Copy the full SHA b06dac3View commit details -
refactor: Rename
EventCacheStoreLock::lock
tolock_unchecked
.We are about to introduce a lock which checks if it's been poisoned. To not break the current API semantics, `lock` is renamed `lock_unchecked` if poisoning isn't check/doesn't raise an error.
Configuration menu - View commit details
-
Copy full SHA for dc31f93 - Browse repository at this point
Copy the full SHA dc31f93View commit details -
feat(common): Implement
BackingStore
for allArc<T>
where `T: Bac……kingStore`. This patch implements `BackingStore` for all `Arc<T>` where `T: BackingStore`.
Configuration menu - View commit details
-
Copy full SHA for d4e69a3 - Browse repository at this point
Copy the full SHA d4e69a3View commit details -
feat(base): Implement
LockableEventCacheStore::is_poisoned
.This patch implements `LockableEventCacheStore:is_poisoned` to know whether the lock has been poisoned or not.
Configuration menu - View commit details
-
Copy full SHA for eff9827 - Browse repository at this point
Copy the full SHA eff9827View commit details -
feat(base): Implement
EventCacheStoreLock::lock
.This patch implements `EventCacheStoreLock::lock`, which is similar to `lock_unchecked` but it returns a `Result<EventCacheStoreLockGuard, EventCacheStoreLockPoisonError<…>>` to handle the _poisoned_ case.
Configuration menu - View commit details
-
Copy full SHA for fa18ed4 - Browse repository at this point
Copy the full SHA fa18ed4View commit details -
test(base): Add
logged_in_base_client_with_store_config
.This patch adds a small `logged_in_base_client_with_store_config` function similarly to `logged_in_base_client`, but… with… a store config!
Configuration menu - View commit details
-
Copy full SHA for 4ace281 - Browse repository at this point
Copy the full SHA 4ace281View commit details -
test(base): Add tests for
EventCacheStoreLock::lock_*
.This patch adds tests for `EventCacheStoreLock::lock` and `lock_unchecked`.
Configuration menu - View commit details
-
Copy full SHA for 5073cd1 - Browse repository at this point
Copy the full SHA 5073cd1View commit details
Commits on Nov 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for cd4c12e - Browse repository at this point
Copy the full SHA cd4c12eView commit details