From 5b9d858f576e70bf74cbef6fdd6d77e5c118a2ac Mon Sep 17 00:00:00 2001 From: Pepijn Schoen Date: Fri, 7 Apr 2017 13:34:15 +0200 Subject: [PATCH] Fingerprint .edges --- include/extractor/files.hpp | 4 ++-- src/storage/storage.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/extractor/files.hpp b/include/extractor/files.hpp index 6102ff73c..6a51c3eba 100644 --- a/include/extractor/files.hpp +++ b/include/extractor/files.hpp @@ -120,7 +120,7 @@ inline void readTurnData(const boost::filesystem::path &path, TurnDataT &turn_da std::is_same::value || std::is_same::value, ""); - const auto fingerprint = storage::io::FileReader::HasNoFingerprint; + const auto fingerprint = storage::io::FileReader::VerifyFingerprint; storage::io::FileReader reader{path, fingerprint}; serialization::read(reader, turn_data); @@ -134,7 +134,7 @@ inline void writeTurnData(const boost::filesystem::path &path, const TurnDataT & std::is_same::value || std::is_same::value, ""); - const auto fingerprint = storage::io::FileWriter::HasNoFingerprint; + const auto fingerprint = storage::io::FileWriter::GenerateFingerprint; storage::io::FileWriter writer{path, fingerprint}; serialization::write(writer, turn_data); diff --git a/src/storage/storage.cpp b/src/storage/storage.cpp index d9124647e..19c7ac7c3 100644 --- a/src/storage/storage.cpp +++ b/src/storage/storage.cpp @@ -229,7 +229,7 @@ void Storage::PopulateLayout(DataLayout &layout) // Loading information for original edges { - io::FileReader edges_file(config.edges_data_path, io::FileReader::HasNoFingerprint); + io::FileReader edges_file(config.edges_data_path, io::FileReader::VerifyFingerprint); const auto number_of_original_edges = edges_file.ReadElementCount64(); // note: settings this all to the same size is correct, we extract them from the same struct