forked from organicmaps/organicmaps
[geocoder] Fix for review
This commit is contained in:
parent
28ba572127
commit
6f6c7a4d25
2 changed files with 5 additions and 3 deletions
|
@ -153,9 +153,10 @@ void HierarchyReader::DeserializeEntryMap(vector<string> const & linesBuffer, in
|
|||
if (entry.m_type == Type::Count)
|
||||
continue;
|
||||
|
||||
++stats.m_numLoaded;
|
||||
if (stats.m_numLoaded % kLogBatch == 0)
|
||||
LOG(LINFO, ("Read", (stats.m_numLoaded / kLogBatch) * kLogBatch, "entries"));
|
||||
auto numLoaded = stats.m_numLoaded.fetch_add(1) + 1;
|
||||
|
||||
if (numLoaded % kLogBatch == 0)
|
||||
LOG(LINFO, ("Read", numLoaded, "entries"));
|
||||
|
||||
entries.emplace(osmId, move(entry));
|
||||
}
|
||||
|
|
|
@ -31,6 +31,7 @@ private:
|
|||
|
||||
void DeserializeEntryMap(std::vector<std::string> const & linesBuffer, int const bufferSize,
|
||||
std::multimap<base::GeoObjectId, Entry> & entries, ParsingStats & stats);
|
||||
|
||||
std::vector<Entry> MergeEntries(std::vector<std::multimap<base::GeoObjectId, Entry>> & entryParts);
|
||||
|
||||
boost::iostreams::filtering_istream m_fileStream;
|
||||
|
|
Loading…
Add table
Reference in a new issue