diff options
author | Monty <monty@mariadb.org> | 2018-10-09 19:08:16 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2018-12-09 20:49:05 +0200 |
commit | ae58cd6b87bf1f872093816691ebdd46bef50c7f (patch) | |
tree | 02fc330a4d1296fce819b7345eb5ef6cbc3061dd /sql/table_cache.cc | |
parent | 9207a838ededa0d5f40129848de20a2075ab0e44 (diff) | |
download | mariadb-git-ae58cd6b87bf1f872093816691ebdd46bef50c7f.tar.gz |
Simple cleanups (no logic changes)
Diffstat (limited to 'sql/table_cache.cc')
-rw-r--r-- | sql/table_cache.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/table_cache.cc b/sql/table_cache.cc index 682f9455d26..9afe3ca61d4 100644 --- a/sql/table_cache.cc +++ b/sql/table_cache.cc @@ -232,7 +232,7 @@ static void intern_close_table(TABLE *table) uint tc_records(void) { ulong total= 0; - for (ulong i= 0; i < tc_instances; i++) + for (uint32 i= 0; i < tc_instances; i++) { mysql_mutex_lock(&tc[i].LOCK_table_cache); total+= tc[i].records; @@ -277,7 +277,7 @@ static void tc_remove_all_unused_tables(TDC_element *element, */ if (mark_flushed) element->flushed= true; - for (ulong i= 0; i < tc_instances; i++) + for (uint32 i= 0; i < tc_instances; i++) { mysql_mutex_lock(&tc[i].LOCK_table_cache); while ((table= element->free_tables[i].list.pop_front())) @@ -491,7 +491,7 @@ static void tdc_assert_clean_share(TDC_element *element) DBUG_ASSERT(element->m_flush_tickets.is_empty()); DBUG_ASSERT(element->all_tables.is_empty()); #ifndef DBUG_OFF - for (ulong i= 0; i < tc_instances; i++) + for (uint32 i= 0; i < tc_instances; i++) DBUG_ASSERT(element->free_tables[i].list.is_empty()); #endif DBUG_ASSERT(element->all_tables_refs == 0); @@ -564,7 +564,7 @@ static void lf_alloc_constructor(uchar *arg) mysql_cond_init(key_TABLE_SHARE_COND_release, &element->COND_release, 0); element->m_flush_tickets.empty(); element->all_tables.empty(); - for (ulong i= 0; i < tc_instances; i++) + for (uint32 i= 0; i < tc_instances; i++) element->free_tables[i].list.empty(); element->all_tables_refs= 0; element->share= 0; |