Documentation Home
MySQL Internals Manual

MySQL Internals Manual  /  ...  /  Implementing the savepoint_set Method Implementing the savepoint_set Method

The savepoint_set() method 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.