From ef4f761239aedf3794733b9b2d08e1a0a251d28d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20G=C3=BCndling?= Date: Wed, 23 Oct 2024 18:17:37 +0200 Subject: [PATCH] apply flush threshold --- src/osm/load_osm.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osm/load_osm.cc b/src/osm/load_osm.cc index 0676032..25b9735 100644 --- a/src/osm/load_osm.cc +++ b/src/osm/load_osm.cc @@ -32,7 +32,7 @@ namespace oeb = osmium::osm_entity_bits; void load_osm(tile_db_handle& db_handle, feature_inserter_mt& inserter, std::string const& osm_fname, std::string const& osm_profile, - std::string const& tmp_dname) { + std::string const& tmp_dname, size_t flush_threshold) { oio::File input_file; size_t file_size{0}; try { @@ -76,7 +76,7 @@ void load_osm(tile_db_handle& db_handle, feature_inserter_mt& inserter, } layer_names_builder names_builder; - shared_metadata_builder metadata_builder; + shared_metadata_builder metadata_builder(flush_threshold); in_order_queue mp_queue;