Skip to content

v2.1.0

Compare
Choose a tag to compare
@adam-p adam-p released this 24 Aug 17:55
· 32 commits to master since this release
8e0441b

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.