Skip to content

Allow restarting or rolling back a transaction

Jynn Nelson requested to merge tp_st_restart_ok into master

Closes #22 (closed).

This adds a more fine-grained API to tp_st, allowing users to decide when a transaction should be rolled back or restarted instead of blindly returning an Err. Users can still return an arbitrary error if they so wish and the transaction will be rolled back. Users can still easily propagate YDB_TP_RESTART and YDB_TP_ROLLBACK using the try operator (?).

See #22 (closed) for more discussion.

r? @zylog1O1

Edited by Jynn Nelson

Merge request reports

Loading