Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgovako <vng@maps.me>2015-07-17 13:53:07 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:56:25 +0300
commit806c409a08b536b1e24b8a2a094e3f30eb942f5c (patch)
tree47e7b201738fffd8eed1c4d6bf2e30283f4d3790 /indexer/mwm_set.cpp
parent5f761e7a0ef346d88fa4643a4183580ad94ba331 (diff)
Merge pull request #1230 from gorshenin/mwm-set-and-storage-sync-fix
[storage, index, release bugfix Fixed sync between MwmSet and Storage.
Diffstat (limited to 'indexer/mwm_set.cpp')
-rw-r--r--indexer/mwm_set.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indexer/mwm_set.cpp b/indexer/mwm_set.cpp
index 4d2e90d7d9..35b6d2b9e8 100644
--- a/indexer/mwm_set.cpp
+++ b/indexer/mwm_set.cpp
@@ -106,8 +106,9 @@ pair<MwmSet::MwmHandle, MwmSet::RegResult> MwmSet::Register(LocalCountryFile con
// Update the status of the mwm with the same version.
if (info->GetVersion() == localFile.GetVersion())
{
- LOG(LWARNING, ("Trying to add already registered mwm:", name));
+ LOG(LINFO, ("Updating already registered mwm:", name));
info->SetStatus(MwmInfo::STATUS_REGISTERED);
+ info->m_file = localFile;
return make_pair(GetLock(id), RegResult::VersionAlreadyExists);
}