MySQL 8.4.2
Source Code Documentation
|
This service provides functions for storage engines to report lock related activities. More...
Go to the source code of this file.
Functions | |
void | thd_report_row_lock_wait (THD *self, THD *wait_for) |
void | thd_report_lock_wait (THD *self, THD *wait_for, bool may_survive_prepare) |
Call it just when the engine find a transaction should wait another transaction to release a lock. More... | |
This service provides functions for storage engines to report lock related activities.
Call it just when the engine find a transaction should wait another transaction to release a lock.
Interface for Engine to report lock conflict. The caller should guarantee self and thd_wait_for does not be freed, while it is called.
[in] | self | The thd session which is waiting for the lock to release |
[in] | wait_for | The session which is holding the lock |
[in] | may_survive_prepare | true: edge MAY remain even after wait_for session PREPAREs its transaction, false: edge CERTAINLY will be removed before or during PREPARE of transaction run by the wait_for session. |
[in] | self | The thd session which is waiting for the lock to release |
[in] | wait_for | The session which is holding the lock |