summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnel Husakovic <anel@mariadb.org>2022-08-16 15:53:42 +0200
committerAnel <an3l@users.noreply.github.com>2022-09-14 15:58:08 +0200
commitb7928f756618fa6fb6fc52c0b4e3214f7a061d21 (patch)
tree7e2b0e0d9a2f396775e401519f832fe4a01e211a
parent16b2bb909adeae8c2be628112a5c28f1618145dc (diff)
downloadmariadb-git-b7928f756618fa6fb6fc52c0b4e3214f7a061d21.tar.gz
Add missing comment and remove unnecessary initialization
- Commit c8948b0d0db4 introduced `get_one_variable()` - updating missing argument. - Remove caller setting of empty string in `rpl_filter`, since underlying functions will do the same (commit 9584cbe7fcc4 introduced). Reviewed by: <brandon.nesterenko@mariadb.com>
-rw-r--r--sql/sql_show.cc1
-rw-r--r--sql/sys_vars.cc1
2 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index cdf0bc01b6a..a54b777705a 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -3581,6 +3581,7 @@ union Any_pointer {
@param variable [in] Details of the variable.
@param value_type [in] Variable type.
@param show_type [in] Variable show type.
+ @param status_var [in] Status variable pointer
@param charset [out] Character set of the value.
@param buff [in,out] Buffer to store the value.
(Needs to have enough memory
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc
index f04b295a953..0e24fc56529 100644
--- a/sql/sys_vars.cc
+++ b/sql/sys_vars.cc
@@ -4985,7 +4985,6 @@ Sys_var_rpl_filter::global_value_ptr(THD *thd,
}
rpl_filter= mi->rpl_filter;
- tmp.length(0);
mysql_mutex_lock(&LOCK_active_mi);
switch (opt_id) {