You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PYCBC-1646: Migrate transactions to use transaction_context
Motivation
==========
The current path of using the C++ core async_attempt_context adds
complexity to both the Python SDK and C++ core (the Python SDK is the
only client using the async_attempt_context logic). Migrating to using
transaction_context will place the Python SDK inline with other wrappers
and also allow some code removal/cleanup in the C++ core.
Modification
============
* Remove attempt_context and use transaction_context instead
* Remove executing the transaction lambda in the bindings
* Rearrange how transaction exceptions are built in the bindings
* Update Python (non-binding) transaction code to execute transaction logic
Results
=======
All tests pass without any modification to tests.
Change-Id: Iaca68e5d36507bcc64d2cd34afc8e244dc819fc4
Reviewed-on: https://review.couchbase.org/c/couchbase-python-client/+/221542
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dimitris Christodoulou <dimitris.christodoulou@couchbase.com>
0 commit comments