MySQL 9.0.0
Source Code Documentation
MDL_release_locks_visitor Class Referenceabstract

Base class to find out if the lock represented by a given ticket should be released. More...

#include <mdl.h>

Inheritance diagram for MDL_release_locks_visitor:
[legend]

Public Member Functions

virtual ~MDL_release_locks_visitor ()=default
 
virtual bool release (MDL_ticket *ticket)=0
 Check if the given ticket represents a lock that should be released. More...
 

Detailed Description

Base class to find out if the lock represented by a given ticket should be released.

Users of release_locks() need to subclass this and specify an implementation of release(). Only for locks with explicit duration.

Constructor & Destructor Documentation

◆ ~MDL_release_locks_visitor()

virtual MDL_release_locks_visitor::~MDL_release_locks_visitor ( )
virtualdefault

Member Function Documentation

◆ release()

virtual bool MDL_release_locks_visitor::release ( MDL_ticket ticket)
pure virtual

Check if the given ticket represents a lock that should be released.

Return values
trueif the lock should be released, false otherwise.

Implemented in Release_acl_cache_locks, Release_all_locking_service_locks, Release_locking_service_locks, Release_all_backup_locks, and Release_histogram_locks.


The documentation for this class was generated from the following file: