MySQL 9.1.0
Source Code Documentation
|
#include "mysql/components/services/backup_lock_service.h"
#include "mysql/components/service_implementation.h"
#include "sql/current_thd.h"
#include "sql/sql_backup_lock.h"
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... | |
|
noexcept |
Service API to acquire shared Backup Lock.
opaque_thd | Current thread context. |
lock_kind | Kind of lock to acquire - BACKUP_LOCK_SERVICE_DEFAULT or weaker. |
lock_timeout | Number of seconds to wait before giving up. |
false | Success |
true | Failure |
|
noexcept |
Service API to release Backup Lock.
opaque_thd | Current thread context. |
false | Success |
true | Failure |