From: James Turner Date: Mon, 21 Oct 2013 12:26:08 +0000 (+0100) Subject: Fix bug 1227, cache thrash on Win. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b30408b862ae0a300ff32ef90b20cdde9efdd499;p=flightgear.git Fix bug 1227, cache thrash on Win. Since we skip POI load on Windows, we also need to omit the stat check. Apologies for the dumb mistake. (Will back port to 2.12 branch) --- diff --git a/src/Navaids/NavDataCache.cxx b/src/Navaids/NavDataCache.cxx index da943aa28..a17c8c6ea 100644 --- a/src/Navaids/NavDataCache.cxx +++ b/src/Navaids/NavDataCache.cxx @@ -1100,7 +1100,11 @@ bool NavDataCache::isRebuildRequired() isCachedFileModified(d->metarDatPath) || isCachedFileModified(d->navDatPath) || isCachedFileModified(d->fixDatPath) || +// since POI loading is disabled on Windows, don't check for it +// this caused: https://code.google.com/p/flightgear-bugs/issues/detail?id=1227 +#ifndef SG_WINDOWS isCachedFileModified(d->poiDatPath) || +#endif isCachedFileModified(d->airwayDatPath)) { SG_LOG(SG_NAVCACHE, SG_INFO, "NavCache: main cache rebuild required");