-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CR] Only reset if owned when cancelling weak ownership
If ownership has already been lost to another thread, do NOT delete ownership when released. - KV does not provide a DeleteIf operation. Instead, use SetIf with an always-expired timestamp. - Along the way, ensure "owner" string is truly unique by stringing a nanoid onto it. Currently owner is the request ID, which should be unique - but adding randomness ensures it will always be unique regardless of the calling system.
- Loading branch information
1 parent
c7ecd5f
commit 0ec602d
Showing
2 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters