15.16.5.2. Implementing the savepoint_set
Function
The savepoint_set()
function is called
whenever a user issues the SAVEPOINT
statement:
int (*savepoint_set)(THD *thd, void *sv);
The *sv
parameter points to an
uninitialized storage area of the size defined by
savepoint_offset
.
When savepoint_set()
is called, the
storage engine needs to store savepoint information into
sv
so that the server can later roll back
the transaction to the savepoint or release the savepoint
resources.