Skip to content

Commit 60e61f2

Browse files
committed
Move merging of expire trees into its own function
1 parent e07ae60 commit 60e61f2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/osmdata.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,14 @@ class multithreaded_processor
221221
void process_relations(idlist_t &&list)
222222
{
223223
process_queue("relation", std::move(list), do_rels);
224+
}
224225

225-
// Collect expiry tree information from all clones and merge it back
226-
// into the original outputs.
226+
/**
227+
* Collect expiry tree information from all clones and merge it back
228+
* into the original outputs.
229+
*/
230+
void merge_expire_trees()
231+
{
227232
for (auto const &clone : m_clones) {
228233
auto it = clone.begin();
229234
for (auto const &output : m_outputs) {
@@ -386,6 +391,7 @@ void osmdata_t::stop() const
386391

387392
proc.process_ways(m_dependency_manager->get_pending_way_ids());
388393
proc.process_relations(m_dependency_manager->get_pending_relation_ids());
394+
proc.merge_expire_trees();
389395
}
390396

391397
for (auto &out : m_outs) {

0 commit comments

Comments
 (0)