@@ -33,7 +33,6 @@ osmdata_t::osmdata_t(std::unique_ptr<dependency_manager_t> dependency_manager,
3333 m_output (std::move(output)), m_conninfo(options.database_options.conninfo()),
3434 m_bbox(options.bbox), m_num_procs(options.num_procs),
3535 m_append(options.append), m_droptemp(options.droptemp),
36- m_parallel_indexing(options.parallel_indexing),
3736 m_with_extra_attrs(options.extra_attributes),
3837 m_with_forward_dependencies(options.with_forward_dependencies)
3938{
@@ -373,27 +372,20 @@ void osmdata_t::reprocess_marked() const { m_output->reprocess_marked(); }
373372
374373void osmdata_t::postprocess_database () const
375374{
376- unsigned int const num_threads = m_parallel_indexing ? m_num_procs : 1U ;
377- log_debug (" Starting pool with {} threads." , num_threads);
378-
379- // All the intensive parts of this are long-running PostgreSQL commands.
380- // They will be run in a thread pool.
381- thread_pool_t pool{num_threads};
382-
383375 if (m_droptemp) {
384376 // When dropping middle tables, make sure they are gone before
385377 // indexing starts.
386- m_mid->stop (pool );
378+ m_mid->stop ();
387379 }
388380
389- m_output->stop (&pool );
381+ m_output->stop ();
390382
391383 if (!m_droptemp) {
392384 // When keeping middle tables, there is quite a large index created
393385 // which is better done after the output tables have been copied.
394386 // Note that --disable-parallel-indexing needs to be used to really
395387 // force the order.
396- m_mid->stop (pool );
388+ m_mid->stop ();
397389 }
398390
399391 // Waiting here for pool to execute all tasks.
0 commit comments