-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add locks to process operations to prevent race conditions.
fix: #93 Our old solution on #53, can reduce possibility of race condition, but it still happens occasionally. 1. Add locks to write and read operations to prevent this kind of error. 2. Remove old file replacing solution. 3. Use reraise to simplify the code in `__getitem__`
- Loading branch information
1 parent
22b25a4
commit 6e6dc47
Showing
2 changed files
with
14 additions
and
9 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