From 34cf9d8ad322902011b1dc3c663074538c72216e Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 20 Dec 2020 16:38:58 +0100 Subject: [PATCH] Add log entry with number of threads when thread pool is started --- src/osmdata.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/osmdata.cpp b/src/osmdata.cpp index 3ecc71c39..940e3474d 100644 --- a/src/osmdata.cpp +++ b/src/osmdata.cpp @@ -414,9 +414,12 @@ void osmdata_t::reprocess_marked() const void osmdata_t::postprocess_database() const { + auto const num_threads = m_parallel_indexing ? m_num_procs : 1; + log_debug("Starting pool with {} threads.", num_threads); + // All the intensive parts of this are long-running PostgreSQL commands. // They will be run in a thread pool. - thread_pool_t pool{m_parallel_indexing ? m_num_procs : 1}; + thread_pool_t pool{num_threads}; if (m_droptemp) { // When dropping middle tables, make sure they are gone before