Storage index files removing fix.

This commit is contained in:
Lev Dragunov 2015-07-17 16:52:41 +03:00 committed by Alex Zolotarev
parent 055e154c3e
commit f3b1997121

View file

@ -68,11 +68,7 @@ uint64_t GetRemoteSize(CountryFile const & file, TMapOptions opt)
void DeleteCountryIndexes(LocalCountryFile const & localFile)
{
// TODO (@gorshenin, @ldragunov): delete localFile instead of rootFile when routing will be
// switched to new country indexes API.
LocalCountryFile rootFile(GetPlatform().WritableDir(), localFile.GetCountryFile(),
localFile.GetVersion());
platform::CountryIndexes::DeleteFromDisk(rootFile);
platform::CountryIndexes::DeleteFromDisk(localFile);
}
class EqualFileName