diff options
| author | Monty <monty@mariadb.org> | 2019-11-26 19:52:07 +0200 |
|---|---|---|
| committer | Monty <monty@mariadb.org> | 2019-11-26 19:52:07 +0200 |
| commit | d1851b3009279d91c27a1fa36d2294a3f4fd7959 (patch) | |
| tree | ec5a5cc2594fee04a33a57991892549a8b29f3e7 /sql/sql_test.cc | |
| parent | dc75f3e06d3ff3c521207321e3548a83786092eb (diff) | |
| download | mariadb-git-d1851b3009279d91c27a1fa36d2294a3f4fd7959.tar.gz | |
Code cleanups
- Replace "class Repeat_count" with function call.
There is no reason for this class to exists. More complex and more
code than doing a function! In addition the code didn't match what
the val() function was doing.
Other things:
- Fixed compiler failure in print_cached_tables_callback()
Diffstat (limited to 'sql/sql_test.cc')
| -rw-r--r-- | sql/sql_test.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc index c5d8b336e38..07e2d5e084e 100644 --- a/sql/sql_test.cc +++ b/sql/sql_test.cc @@ -88,9 +88,8 @@ static my_bool print_cached_tables_callback(TDC_element *element, while ((entry= it++)) { THD *in_use= entry->in_use; - printf("%-14.14s %-32s%6lu%8ld%6d %s\n", + printf("%-14.14s %-32s%8ld%6d %s\n", entry->s->db.str, entry->s->table_name.str, - (ulong) element->version, in_use ? (long) in_use->thread_id : (long) 0, entry->db_stat ? 1 : 0, in_use ? lock_descriptions[(int)entry->reginfo.lock_type] : |
