mirror of
https://github.com/MariaDB/server.git
synced 2026-05-19 05:20:16 +02:00
cleanup: CREATE_TYPELIB_FOR() helper
(cherry picked from commit d046aca0c7)
This commit is contained in:
parent
b8bdbd12dd
commit
bcb77590f0
39 changed files with 323 additions and 484 deletions
|
|
@ -176,8 +176,7 @@ static enum {MODE_GET, MODE_PUT, MODE_DELETE} opt_mode;
|
|||
static char **file_list = NULL;
|
||||
static int file_list_size = 0;
|
||||
|
||||
TYPELIB storage_typelib =
|
||||
{array_elements(storage_names)-1, "", storage_names, NULL};
|
||||
TYPELIB storage_typelib = CREATE_TYPELIB_FOR(storage_names);
|
||||
|
||||
enum {
|
||||
OPT_STORAGE = 256,
|
||||
|
|
|
|||
|
|
@ -389,8 +389,7 @@ static ulong innodb_flush_method;
|
|||
|
||||
static const char *binlog_info_values[] = {"off", "lockless", "on", "auto",
|
||||
NullS};
|
||||
static TYPELIB binlog_info_typelib = {array_elements(binlog_info_values)-1, "",
|
||||
binlog_info_values, NULL};
|
||||
static TYPELIB binlog_info_typelib = CREATE_TYPELIB_FOR(binlog_info_values);
|
||||
ulong opt_binlog_info;
|
||||
|
||||
char *opt_incremental_history_name;
|
||||
|
|
@ -407,8 +406,7 @@ char *opt_log_bin;
|
|||
|
||||
const char *query_type_names[] = { "ALL", "UPDATE", "SELECT", NullS};
|
||||
|
||||
TYPELIB query_type_typelib= {array_elements(query_type_names) - 1, "",
|
||||
query_type_names, NULL};
|
||||
TYPELIB query_type_typelib= CREATE_TYPELIB_FOR(query_type_names);
|
||||
|
||||
ulong opt_lock_wait_query_type;
|
||||
ulong opt_kill_long_query_type;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue