@@ -32,9 +32,8 @@ class output_gazetteer_t : public output_t
3232 // / Constructor for new objects
3333 output_gazetteer_t (std::shared_ptr<middle_query_t > const &mid,
3434 std::shared_ptr<thread_pool_t > thread_pool,
35- options_t const &options,
36- std::shared_ptr<db_copy_thread_t > const ©_thread)
37- : output_t (mid, std::move(thread_pool), options), m_copy(copy_thread),
35+ options_t const &options)
36+ : output_t (mid, std::move(thread_pool), options),
3837 m_proj (options.projection)
3938 {
4039 m_style.load_style (options.style );
@@ -96,12 +95,14 @@ class output_gazetteer_t : public output_t
9695 bool process_way (osmium::Way *way);
9796 bool process_relation (osmium::Relation const &rel);
9897
99- gazetteer_copy_mgr_t m_copy;
98+ gazetteer_copy_mgr_t m_copy{
99+ std::make_shared<db_copy_thread_t >(get_options ()->conninfo )};
100+
100101 gazetteer_style_t m_style;
101102
102103 std::shared_ptr<reprojection> m_proj;
103104 osmium::memory::Buffer m_osmium_buffer{
104105 PLACE_BUFFER_SIZE, osmium::memory::Buffer::auto_grow::yes};
105- };
106+ };
106107
107108#endif // OSM2PGSQL_OUTPUT_GAZETTEER_HPP
0 commit comments