#include <sys/types.h>
#include "my_sqlcommand.h"
#include "sql/sql_cmd.h"
Go to the source code of this file.
◆ acquire_exclusive_backup_lock()
bool acquire_exclusive_backup_lock |
( |
THD * |
thd, |
|
|
unsigned long |
lock_wait_timeout, |
|
|
bool |
for_trx |
|
) |
| |
Acquire exclusive Backup Lock.
- Parameters
-
[in] | thd | Current thread context |
[in] | lock_wait_timeout | How many seconds to wait before timeout. |
[in] | for_trx | true if MDL duration is MDL_TRANSACTION false if MDL duration is MDL_EXPLICIT |
- Returns
- Operation status.
- Return values
-
◆ acquire_shared_backup_lock()
bool acquire_shared_backup_lock |
( |
THD * |
thd, |
|
|
unsigned long |
lock_wait_timeout, |
|
|
bool |
for_trx = true |
|
) |
| |
Acquire shared Backup Lock.
- Parameters
-
[in] | thd | Current thread context |
[in] | lock_wait_timeout | How many seconds to wait before timeout. |
[in] | for_trx | true if MDL duration is MDL_TRANSACTION false if MDL duration is MDL_EXPLICIT |
- Returns
- Operation status.
- Return values
-
◆ release_backup_lock()
void release_backup_lock |
( |
THD * |
thd | ) |
|
Release Backup Lock if it was acquired.
- Parameters
-
[in] | thd | Current thread context |