diff options
author | Lev Dragunov <l.dragunov@corp.mail.ru> | 2015-07-16 13:07:19 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:56:26 +0300 |
commit | 45faef6be3270c5d7a4fce25d04b06a5308ec8cc (patch) | |
tree | 1641436afe5c30449f09a9b1109cfc39af2c6355 /indexer/features_offsets_table.cpp | |
parent | 9edc10dbc26d9900498f12747eea83e669847880 (diff) |
Routing indexes new file API support.
Diffstat (limited to 'indexer/features_offsets_table.cpp')
-rw-r--r-- | indexer/features_offsets_table.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indexer/features_offsets_table.cpp b/indexer/features_offsets_table.cpp index e18824136d..a519a3baf6 100644 --- a/indexer/features_offsets_table.cpp +++ b/indexer/features_offsets_table.cpp @@ -56,12 +56,14 @@ namespace feature // static unique_ptr<FeaturesOffsetsTable> FeaturesOffsetsTable::CreateIfNotExistsAndLoad( - string const & fileName, FilesContainerR const & mwmFileContainer) + string const & fileName, platform::LocalCountryFile const & localFile) { uint64_t size; if (GetPlatform().GetFileSizeByFullPath(fileName,size)) return Load(fileName); + FilesContainerR mwmFileContainer(localFile.GetPath(TMapOptions::EMap)); + LOG(LINFO, ("Features offsets table is absent! Creating a new one.")); if (!mwmFileContainer.IsExist(HEADER_FILE_TAG)) |