summaryrefslogtreecommitdiff
path: root/tpool
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-01-22 10:06:07 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2020-01-22 10:06:07 +0200
commit588eac58fd96c2a531a1821d9146c8dc4760fa24 (patch)
treec5d9dd2c12c9f0c0ddff6ed8d1783ca468d0a780 /tpool
parent6f2ca4eac167a12529f6062b300d89af83b310ec (diff)
downloadmariadb-git-588eac58fd96c2a531a1821d9146c8dc4760fa24.tar.gz
MDEV-21551: Fix -Wsign-compare
An assertion added in commit c20bf8fd494edd4e4931557395b8a2bdf6cc48ab includes a sign mismatch. Make the affected data members unsigned.
Diffstat (limited to 'tpool')
-rw-r--r--tpool/tpool_generic.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tpool/tpool_generic.cc b/tpool/tpool_generic.cc
index 91c5ee1bb67..3c997dfb8bd 100644
--- a/tpool/tpool_generic.cc
+++ b/tpool/tpool_generic.cc
@@ -1,4 +1,4 @@
-/* Copyright(C) 2019 MariaDB Corporation.
+/* Copyright (C) 2019, 2020, MariaDB Corporation.
This program is free software; you can redistribute itand /or modify
it under the terms of the GNU General Public License as published by
@@ -217,9 +217,9 @@ class thread_pool_generic : public thread_pool
/** Number of long running tasks. The long running tasks are excluded when
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*/
std::chrono::system_clock::time_point m_last_thread_creation;