MySQL 8.3.0
Source Code Documentation
service_thd_engine_lock.h File Reference

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...
 

Detailed Description

This service provides functions for storage engines to report lock related activities.

Function Documentation

◆ thd_report_lock_wait()

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.

Interface for Engine to report lock conflict. The caller should guarantee self and thd_wait_for does not be freed, while it is called.

Parameters
[in]selfThe thd session which is waiting for the lock to release
[in]wait_forThe session which is holding the lock
[in]may_survive_preparetrue: 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.

◆ thd_report_row_lock_wait()

void thd_report_row_lock_wait ( THD self,
THD wait_for 
)
Deprecated:
Please use thd_report_lock_wait(self, wait_for, true) instead.
See also
thd_report_lock_wait Call it just when the engine find a transaction should wait another transaction to release a row lock.
Parameters
[in]selfThe thd session which is waiting for the lock to release
[in]wait_forThe session which is holding the lock