-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert the datastore write "pauser" to be a "transaction"
This is to mitigate the possibilty of race conditions when writing multiple values and trying to read one of them. For example: thread 1: begin transaction thread 1: write is_account=true thread 2: read is_account and account_username; get true and "" thread 1: write account_username="blah" thread 1: commit (or roll back) The new implementation will require thread 2 to wait until thread 1 has finished its transaction.
- Loading branch information
Showing
10 changed files
with
362 additions
and
95 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
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
Oops, something went wrong.