A transaction may perform a partial rollback using savepoints. The transaction populates a savepoint by calling ss_m::save_work, then it may roll back to that point with ss_m::rollback_work. Locks acquired between the save_work and rollback_work are not released.
§ rollback_work()
Roll back to a savepoint.
- Parameters
-
Undo everything that was done from the time save_work was called on this savepoint.
- Note
- Locks are not freed.
-
Only one thread may be attached to a transaction when this is called.
§ save_work()
Populate a save point.
- Parameters
-
Store in sp the needed information to be able to roll back to this point. For use with rollback_work.
- Note
- Only one thread may be attached to a transaction when this is called.