MySQL  8.0.17
Source Code Documentation
mysql_backup_lock.h File Reference

Go to the source code of this file.

Functions

mysql_service_status_t mysql_acquire_backup_lock (THD *opaque_thd, enum enum_backup_lock_service_lock_kind lock_kind, unsigned long lock_timeout) noexcept
 Service API to acquire shared Backup Lock. More...
 
mysql_service_status_t mysql_release_backup_lock (THD *opaque_thd) noexcept
 Service API to release Backup Lock. More...
 

Function Documentation

◆ mysql_acquire_backup_lock()

mysql_service_status_t mysql_acquire_backup_lock ( THD opaque_thd,
enum enum_backup_lock_service_lock_kind  lock_kind,
unsigned long  lock_timeout 
)
noexcept

Service API to acquire shared Backup Lock.

Parameters
opaque_thdCurrent thread context.
lock_kindKind of lock to acquire - BACKUP_LOCK_SERVICE_DEFAULT or weaker.
lock_timeoutNumber of seconds to wait before giving up.
Returns
Operation status.
Return values
falseSuccess
trueFailure

◆ mysql_release_backup_lock()

mysql_service_status_t mysql_release_backup_lock ( THD opaque_thd)
noexcept

Service API to release Backup Lock.

Parameters
opaque_thdCurrent thread context.
Returns
Operation status.
Return values
falseSuccess
trueFailure