MySQL 8.4.2
Source Code Documentation
|
Functor to check for given latching constraints. More...
#include <sync0types.h>
Public Member Functions | |
sync_allowed_latches (const latch_level_t *from, const latch_level_t *to) | |
Constructor. More... | |
sync_allowed_latches () | |
Default constructor. More... | |
virtual bool | operator() (const latch_level_t level) override |
Check whether the given latch_t violates the latch constraint. More... | |
virtual bool | result () const override |
Public Member Functions inherited from sync_check_functor_t | |
virtual | ~sync_check_functor_t ()=default |
Private Types | |
typedef std::vector< latch_level_t, ut::allocator< latch_level_t > > | latches_t |
Private Attributes | |
bool | m_result |
Save the result of validation check here True if all OK. More... | |
latches_t | m_latches |
List of latch levels that are allowed to be held. More... | |
Functor to check for given latching constraints.
|
private |
|
inline |
Constructor.
[in] | from | first element in an array of latch_level_t |
[in] | to | last element in an array of latch_level_t |
|
inline |
Default constructor.
The list of allowed latches is empty.
|
inlineoverridevirtual |
Check whether the given latch_t violates the latch constraint.
This object maintains a list of allowed latch levels, and if the given latch belongs to a latch level that is not there in the allowed list, then it is a violation.
[in] | level | The latch level to check |
Implements sync_check_functor_t.
|
inlineoverridevirtual |
Implements sync_check_functor_t.
|
private |
List of latch levels that are allowed to be held.
|
private |
Save the result of validation check here True if all OK.