forked from Doxense/foundationdb-dotnet-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Promote value-chekcs as a first class operation supported by the tran…
…saction object. - tr.CheckValueAsync(key, expected) will read the actual value and compare it to expected value. Will return a pair with the FdbValueCheckResult and actual value. - This command is the logical equivalent of "(await GetAsync(key)) == expected" but is optimized to reduce memory allocation in the case where the check passes. - Rewrote deferred value-checks to use this command (cleans up the logs) - Renamed ValueCheckFailedInPreviousAttempt(..) into TestValueCheckFromPreviousAttempt(..) since we now return an enum - Renamed ListValueChecksFromPreviousAttempt(..) into GetValueChecksFromPreviousAttempt(..) - Removed the singleton flag HasAtLeastOneFailedValueCheck because it is the equivalent of a giant lock, and each layer should use its own tag anyway. - Added a few more annotation in the transaction logs to help troubleshoot value checks.
- Loading branch information
Showing
11 changed files
with
316 additions
and
79 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -707,6 +707,7 @@ public enum Operation | |
GetValues, | ||
GetKeys, | ||
GetRange, | ||
CheckValue, | ||
Watch, | ||
|
||
GetReadVersion, | ||
|
Oops, something went wrong.