From 54a9dcb75fc930253b7d1dd41304683b763570c1 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 2 Feb 2025 14:43:24 -0800 Subject: [PATCH] Rename function to make it less ambiguous --- mysql/edit_dbase.cgi | 4 ++-- mysql/mysql-lib.pl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mysql/edit_dbase.cgi b/mysql/edit_dbase.cgi index 6eebf3f5f..eb9785c75 100755 --- a/mysql/edit_dbase.cgi +++ b/mysql/edit_dbase.cgi @@ -105,7 +105,7 @@ elsif (@titles || @indexes) { ); if ($displayconfig{'style'} == 1) { # Show table names, fields and row counts - my $tables_size = &get_tables_size($in{'db'}); + my $all_tables_size = &get_all_tables_size($in{'db'}); foreach $t (@titles) { local $c = &execute_sql($in{'db'}, "show create table ".quotestr($t)); @@ -117,7 +117,7 @@ elsif (@titles || @indexes) { push(@rows, $c->{'data'}->[0]->[0]); local @str = &table_structure($in{'db'}, $t); push(@fields, scalar(@str)); - my $table_size = &get_table_size($tables_size, $t); + my $table_size = &get_table_size($all_tables_size, $t); push(@sizes, &nice_size($table_size)); } my $table_index_stats = &get_table_index_stats($in{'db'}); diff --git a/mysql/mysql-lib.pl b/mysql/mysql-lib.pl index 96ffde341..74b863164 100755 --- a/mysql/mysql-lib.pl +++ b/mysql/mysql-lib.pl @@ -1349,9 +1349,9 @@ my $rs = &execute_sql_safe($db, $sql_query, $db, @tables); return $rs; } -# get_tables_size(db) +# get_all_tables_size(db) # Retrieves the size of all tables in the given database -sub get_tables_size +sub get_all_tables_size { my ($db) = @_; my @tables = list_tables($db);