Skip to content

Commit

Permalink
apply flush threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Oct 23, 2024
1 parent f7208d4 commit ef4f761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/osm/load_osm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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<om::Buffer> mp_queue;

Expand Down

0 comments on commit ef4f761

Please sign in to comment.