summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2023-01-03 20:12:16 +0100
committerMonty <monty@mariadb.org>2023-02-10 12:59:36 +0200
commit2010cfab2a0a8841dc3db0097b5f37d9654fe1d4 (patch)
treefc1556a56e476244ffb0b29a6d72c96b09d9da68 /mysys
parentd10b3b0169f9bc5e17072a6785f8473a163c483b (diff)
downloadmariadb-git-2010cfab2a0a8841dc3db0097b5f37d9654fe1d4.tar.gz
remove GET_ADJUST_VALUE
avoid contaminating my_getopt with sysvar implementation details. adjust variable values after my_getopt, like it's done for others. this fixes --help to show correct values.
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_getopt.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/mysys/my_getopt.c b/mysys/my_getopt.c
index 0f78ea90bdd..d1b2c599372 100644
--- a/mysys/my_getopt.c
+++ b/mysys/my_getopt.c
@@ -86,7 +86,6 @@ my_bool my_getopt_prefix_matching= 1;
my_bool my_handle_options_init_variables = 1;
my_getopt_value my_getopt_get_addr= 0;
-my_getopt_adjust my_getopt_adjust_value= 0;
static void default_reporter(enum loglevel level, const char *format, ...)
{
@@ -899,9 +898,6 @@ static int setval(const struct my_option *opts, void *value, char *argument,
};
}
- if (opts->var_type & GET_ADJUST_VALUE)
- (*my_getopt_adjust_value)(opts, value);
-
validate_value(opts->name, argument, option_file);
DBUG_RETURN(0);