From 03f036a647a725925d071bcacd6813b74757e323 Mon Sep 17 00:00:00 2001 From: Anatoly Serdtcev Date: Mon, 16 Dec 2019 15:40:17 +0300 Subject: [PATCH] [generator:geo_objects] Fix write jsonl file. --- generator/geo_objects/geo_objects.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/generator/geo_objects/geo_objects.cpp b/generator/geo_objects/geo_objects.cpp index 3f67b40..560eca1 100644 --- a/generator/geo_objects/geo_objects.cpp +++ b/generator/geo_objects/geo_objects.cpp @@ -439,13 +439,12 @@ void AddPoisEnrichedWithHouseAddresses(GeoObjectMaintainer & geoObjectMaintainer auto const id = fb.GetMostGenericOsmId(); auto jsonValue = MakeJsonValueWithNameFromFeature(fb, JsonValue{std::move(house)}); - kvWriter.Write(id, JsonValue{std::move(jsonValue)}); - counter++; if (counter % 100000 == 0) LOG(LINFO, (counter, "pois added")); std::lock_guard lock(streamMutex); + kvWriter.Write(id, JsonValue{std::move(jsonValue)}); streamPoiIdsToAddToLocalityIndex << id << "\n"; };