-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch introduces the KV savepoint API as discussed in the savepoints RFC: ```go // CreateSavepoint establishes a savepoint. // This method is only valid when called on RootTxns. CreateSavepoint(context.Context) (SavepointToken, error) // RollbackToSavepoint rolls back to the given savepoint. The // savepoint must not have been rolled back or released already. // All savepoints "under" the savepoint being rolled back // are also rolled back and their token must not be used any more. // This method is only valid when called on RootTxns. RollbackToSavepoint(context.Context, SavepointToken) error // ReleaseSavepoint releases the given savepoint. The savepoint // must not have been rolled back or released already. // All savepoints "under" the savepoint being released // are also released and their token must not be used any more. // This method is only valid when called on RootTxns. ReleaseSavepoint(context.Context, SavepointToken) error ``` Release note: None
- Loading branch information
Showing
8 changed files
with
834 additions
and
0 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.