diff options
author | Konstantin Osipov <kostja@sun.com> | 2010-08-04 20:29:13 +0400 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2010-08-04 20:29:13 +0400 |
commit | a91a5ee3bfab12437cd9b8ec3a41598c5e5fe47b (patch) | |
tree | 651f4613a1dc0937ea9fee8bdf9f0ed5e0fed2fb /sql/sql_test.cc | |
parent | 2c9c3b0955b72128679991176ae248366815cd97 (diff) | |
download | mariadb-git-a91a5ee3bfab12437cd9b8ec3a41598c5e5fe47b.tar.gz |
Cleanup: remove unused declarations from sql_base.h.
sql/sql_base.cc:
Update a comment to not refer to a non-existing
function.
sql/sql_base.h:
Remove unused declarations (bad merge with the header
files split worklog).
sql/sql_test.cc:
Cleanup: remove unused declarations.
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r-- | sql/sql_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc index 501c4cf6a94..9d0614f8529 100644 --- a/sql/sql_test.cc +++ b/sql/sql_test.cc @@ -118,7 +118,7 @@ static void print_cached_tables(void) printf("unused_links isn't linked properly\n"); return; } - } while (count++ < table_cache_count && (lnk=lnk->next) != start_link); + } while (count++ < cached_open_tables() && (lnk=lnk->next) != start_link); if (lnk != start_link) { printf("Unused_links aren't connected\n"); @@ -416,7 +416,7 @@ static void display_table_locks(void) void *saved_base; DYNAMIC_ARRAY saved_table_locks; - (void) my_init_dynamic_array(&saved_table_locks,sizeof(TABLE_LOCK_INFO), table_cache_count + 20,50); + (void) my_init_dynamic_array(&saved_table_locks,sizeof(TABLE_LOCK_INFO), cached_open_tables() + 20,50); mysql_mutex_lock(&THR_LOCK_lock); for (list= thr_lock_thread_list; list; list= list_rest(list)) { |