Skip to content

Commit 34cf9d8

Browse files
committed
Add log entry with number of threads when thread pool is started
1 parent 8674b42 commit 34cf9d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/osmdata.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,12 @@ void osmdata_t::reprocess_marked() const
414414

415415
void osmdata_t::postprocess_database() const
416416
{
417+
auto const num_threads = m_parallel_indexing ? m_num_procs : 1;
418+
log_debug("Starting pool with {} threads.", num_threads);
419+
417420
// All the intensive parts of this are long-running PostgreSQL commands.
418421
// They will be run in a thread pool.
419-
thread_pool_t pool{m_parallel_indexing ? m_num_procs : 1};
422+
thread_pool_t pool{num_threads};
420423

421424
if (m_droptemp) {
422425
// When dropping middle tables, make sure they are gone before

0 commit comments

Comments
 (0)