MySQL 9.1.0
Source Code Documentation
|
MDL_key::BACKUP_LOCK RAII. More...
#include <sql_backup_lock.h>
Public Types | |
enum class | Lock_result { not_locked = 0 , locked = 1 , oom = 2 } |
There are three possible results while checking if the instance is locked for backup. More... | |
Public Member Functions | |
Shared_backup_lock_guard (THD *thd) | |
Shared_backup_lock_guard (const Shared_backup_lock_guard &o)=delete | |
Shared_backup_lock_guard (Shared_backup_lock_guard &&o)=default | |
Shared_backup_lock_guard & | operator= (const Shared_backup_lock_guard &o)=delete |
Shared_backup_lock_guard & | operator= (Shared_backup_lock_guard &&o)=default |
~Shared_backup_lock_guard () | |
operator Lock_result () const | |
Private Member Functions | |
Shared_backup_lock_guard::Lock_result | try_acquire_shared_backup_lock (THD *thd, bool for_trx) |
Try to acquire shared backup lock. More... | |
Private Attributes | |
Shared_backup_lock_guard::Lock_result | m_lock_state |
THD * | m_thd |
MDL_key::BACKUP_LOCK RAII.
|
strong |
Shared_backup_lock_guard::Shared_backup_lock_guard | ( | THD * | thd | ) |
|
delete |
|
default |
Shared_backup_lock_guard::~Shared_backup_lock_guard | ( | ) |
Shared_backup_lock_guard::operator Shared_backup_lock_guard::Lock_result | ( | ) | const |
|
delete |
|
default |
|
private |
Try to acquire shared backup lock.
[in] | thd | Current thread context |
[in] | for_trx | true if MDL duration is MDL_TRANSACTION false if MDL duration is MDL_EXPLICIT |
Shared_backup_lock_guard::Lock_result::locked | Locked shared BACKUP lock. |
Shared_backup_lock_guard::Lock_result::not_locked | Could not lock shared BACKUP lock. Conflicting lock exists. |
Shared_backup_lock_guard::Lock_result::oom | Error. Could not lock shared BACKUP lock. |
|
private |
|
private |