diff options
author | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2020-02-12 16:50:58 +0200 |
---|---|---|
committer | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2020-02-13 13:42:01 +0200 |
commit | efa9079fbdda12361264660aadbf3dadf70286e5 (patch) | |
tree | 5d9ebeadc697095fb3e2553b5bff5a4971ed2d03 /tpool | |
parent | ad17aa110c5877aac95ad5847ab378f31fd26746 (diff) | |
download | mariadb-git-efa9079fbdda12361264660aadbf3dadf70286e5.tar.gz |
Fix compilation error due to type mismatch in tpool_generic.cc
size_t compared to int
Diffstat (limited to 'tpool')
-rw-r--r-- | tpool/tpool_generic.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpool/tpool_generic.cc b/tpool/tpool_generic.cc index 47c19e39baa..80fa87fb8c1 100644 --- a/tpool/tpool_generic.cc +++ b/tpool/tpool_generic.cc @@ -713,7 +713,7 @@ void thread_pool_generic::maybe_wake_or_create_thread() { if (m_task_queue.empty()) return; - DBUG_ASSERT(m_active_threads.size() >= m_long_tasks_count + m_waiting_task_count); + DBUG_ASSERT(m_active_threads.size() >= static_cast<size_t>(m_long_tasks_count + m_waiting_task_count)); if (m_active_threads.size() - m_long_tasks_count - m_waiting_task_count > m_concurrency) return; if (!m_standby_threads.empty()) |