forked from googleapis/google-cloud-cpp
-
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.
feat!: replace RunTransaction() with Client::Commit(functor) (googlea…
…pis/google-cloud-cpp-spanner#975) Replace g:c:s:RunTransaction() with a new g:c:s:Client::Commit() overload. This is similar to the existing Commit(), but you specify how to create the mutations, instead of passing them directly, which is what is needed to create the rerun loop. The "mutator" callback no longer receives the target Client as an argument because many mutators don't need it. If you want a client in your callback, you will need to bind it yourself. The Transaction::ReadWriteOptions have been removed as there are no options, and being able to preallocate RW transactions pretty much requires that remains the case. Session affinity over reruns is still to be addressed. BREAKING CHANGE Fixes googleapis/google-cloud-cpp-spanner#557.
- Loading branch information
Showing
9 changed files
with
246 additions
and
293 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
Oops, something went wrong.