Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client,kv: new savepoint API #43047

Merged
merged 1 commit into from
Feb 3, 2020
Merged

Commits on Feb 3, 2020

  1. client,kv: new savepoint API

    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
    knz committed Feb 3, 2020
    Configuration menu
    Copy the full SHA
    00e69da View commit details
    Browse the repository at this point in the history