Commit 588eac58 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-21551: Fix -Wsign-compare

An assertion added in commit c20bf8fd
includes a sign mismatch. Make the affected data members unsigned.
parent 6f2ca4ea
/* Copyright(C) 2019 MariaDB Corporation. /* Copyright (C) 2019, 2020, MariaDB Corporation.
This program is free software; you can redistribute itand /or modify This program is free software; you can redistribute itand /or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -217,9 +217,9 @@ class thread_pool_generic : public thread_pool ...@@ -217,9 +217,9 @@ class thread_pool_generic : public thread_pool
/** Number of long running tasks. The long running tasks are excluded when /** Number of long running tasks. The long running tasks are excluded when
adjusting concurrency */ adjusting concurrency */
int m_long_tasks_count; unsigned int m_long_tasks_count;
int m_waiting_task_count; unsigned int m_waiting_task_count;
/** Last time thread was created*/ /** Last time thread was created*/
std::chrono::system_clock::time_point m_last_thread_creation; std::chrono::system_clock::time_point m_last_thread_creation;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment