1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

move MEM_ROOT::read_only into flags

This commit is contained in:
Sergei Golubchik
2023-11-23 09:56:56 +01:00
parent d1ca8fbb76
commit 69d78cd3f8
4 changed files with 11 additions and 18 deletions

View File

@@ -23,6 +23,8 @@
#define ALLOC_MAX_BLOCK_TO_DROP 4096
#define ALLOC_MAX_BLOCK_USAGE_BEFORE_DROP 10
#define ROOT_FLAG_READ_ONLY 4
#ifdef __cplusplus
extern "C" {
#endif
@@ -52,10 +54,6 @@ typedef struct st_mem_root
unsigned short first_block_usage;
unsigned short flags;
#ifdef PROTECT_STATEMENT_MEMROOT
int read_only;
#endif
void (*error_handler)(void);
const char *name;
} MEM_ROOT;