summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-03-16 22:14:50 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2020-03-17 07:56:40 +0200
commit023d9867327c0c5dfe95173c0731940fe6df74ab (patch)
treeb592c20c55757baabfee9f4aa81a11cdeffa3989
parent7b5aaaa554aa1b8ccfa1c437a0612baf01845169 (diff)
downloadmariadb-git-023d9867327c0c5dfe95173c0731940fe6df74ab.tar.gz
perfschema: remove unused variables
-rw-r--r--storage/perfschema/pfs_variable.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/storage/perfschema/pfs_variable.cc b/storage/perfschema/pfs_variable.cc
index 3654dba2936..9be6f12e7b4 100644
--- a/storage/perfschema/pfs_variable.cc
+++ b/storage/perfschema/pfs_variable.cc
@@ -1,4 +1,5 @@
/* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2020, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
@@ -247,9 +248,6 @@ int PFS_system_variable_cache::do_materialize_all(THD *unsafe_thd)
for (SHOW_VAR *show_var= m_show_var_array.front();
show_var->value && (show_var != m_show_var_array.end()); show_var++)
{
- sys_var *value= (sys_var *)show_var->value;
- DBUG_ASSERT(value);
-
/* Resolve value, convert to text, add to cache. */
System_variable system_var(m_safe_thd, show_var, m_query_scope, false);
m_cache.push(system_var);
@@ -505,9 +503,8 @@ void System_variable::init(THD *target_thd, const SHOW_VAR *show_var,
if (show_var == NULL || show_var->name == NULL)
return;
- enum_mysql_show_type show_var_type= show_var->type;
- DBUG_ASSERT(show_var_type == SHOW_SYS);
-
+ DBUG_ASSERT(show_var->type == SHOW_SYS);
+
m_name= show_var->name;
m_name_length= strlen(m_name);