mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.4 to 10.5
This commit is contained in:
@ -284,8 +284,9 @@ class Key_part_spec :public Sql_alloc {
|
||||
public:
|
||||
LEX_CSTRING field_name;
|
||||
uint length;
|
||||
Key_part_spec(const LEX_CSTRING *name, uint len)
|
||||
: field_name(*name), length(len)
|
||||
bool generated;
|
||||
Key_part_spec(const LEX_CSTRING *name, uint len, bool gen= false)
|
||||
: field_name(*name), length(len), generated(gen)
|
||||
{}
|
||||
bool operator==(const Key_part_spec& other) const;
|
||||
/**
|
||||
@ -3774,10 +3775,17 @@ public:
|
||||
/* Commit both statement and full transaction */
|
||||
int commit_whole_transaction_and_close_tables();
|
||||
void give_protection_error();
|
||||
/*
|
||||
Give an error if any of the following is true for this connection
|
||||
- BACKUP STAGE is active
|
||||
- FLUSH TABLE WITH READ LOCK is active
|
||||
- BACKUP LOCK table_name is active
|
||||
*/
|
||||
inline bool has_read_only_protection()
|
||||
{
|
||||
if (current_backup_stage == BACKUP_FINISHED &&
|
||||
!global_read_lock.is_acquired())
|
||||
!global_read_lock.is_acquired() &&
|
||||
!mdl_backup_lock)
|
||||
return FALSE;
|
||||
give_protection_error();
|
||||
return TRUE;
|
||||
@ -6882,11 +6890,11 @@ public:
|
||||
/**
|
||||
SP Bulk execution safe
|
||||
*/
|
||||
#define CF_SP_BULK_SAFE (1U << 20)
|
||||
#define CF_PS_ARRAY_BINDING_SAFE (1U << 20)
|
||||
/**
|
||||
SP Bulk execution optimized
|
||||
*/
|
||||
#define CF_SP_BULK_OPTIMIZED (1U << 21)
|
||||
#define CF_PS_ARRAY_BINDING_OPTIMIZED (1U << 21)
|
||||
/**
|
||||
If command creates or drops a table
|
||||
*/
|
||||
|
Reference in New Issue
Block a user