]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/mempool: include standard thread library 39651/head
authorNathan Cutler <ncutler@suse.com>
Thu, 25 Feb 2021 20:50:20 +0000 (21:50 +0100)
committerNathan Cutler <ncutler@suse.com>
Thu, 25 Feb 2021 20:50:20 +0000 (21:50 +0100)
Attempt to address FTBFS:

/home/jenkins-build/build/workspace/ceph-pull-requests/src/test/test_mempool.cc:399:11: error: request for member 'clear' in 'workers', which is of non-class type 'int'
  399 |   workers.clear();
      |           ^~~~~

seen in nautilus.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/test/test_mempool.cc

index b32b70609440f66ccba3ef9913f04ad607facc88..3b575c952baf1a4c7d8aaacd6853cd4cb4d3443d 100644 (file)
@@ -23,6 +23,8 @@
 #include "include/btree_map.h"
 #include "include/mempool.h"
 
+#include <thread>
+
 void check_usage(mempool::pool_index_t ix)
 {
   mempool::pool_t *pool = &mempool::get_pool(ix);