Skip to content

Conversation

@joto
Copy link
Collaborator

@joto joto commented Nov 27, 2022

The output derived classes can create the copy_thread themselves. They just need the options which they have anyway.

The output derived classes can create the copy_thread themselves. They
just need the options which they have anyway.
@joto joto force-pushed the remove-copy-thread-param branch from 615addf to 47abd1d Compare November 27, 2022 11:13
: output_t(mid, std::move(thread_pool), options), m_copy(copy_thread),
options_t const &options)
: output_t(mid, std::move(thread_pool), options),
m_copy(std::make_shared<db_copy_thread_t>(get_options()->conninfo)),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just use options.conninfo here to be consistent with m_proj initialisation below?

Dito above in output-flex.cpp.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a commit fixing this (and also changing the parameter name o to options in some places for consistency, and short names are bad anyway).

Does the same thing, but first is simpler. Also renames parameter name
"o" to "options".
@lonvia lonvia merged commit 11cc485 into osm2pgsql-dev:master Nov 30, 2022
@joto joto deleted the remove-copy-thread-param branch November 30, 2022 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants