From 180ad8d2d80039df1924e75d649fd4a1b3c7dda3 Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 26 May 2021 10:22:59 +0100 Subject: [PATCH] NavCache: avoid spurious message on rebuild --- src/Navaids/NavDataCache.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) mode change 100644 => 100755 src/Navaids/NavDataCache.cxx diff --git a/src/Navaids/NavDataCache.cxx b/src/Navaids/NavDataCache.cxx old mode 100644 new mode 100755 index e5f1d4f63..be039718b --- a/src/Navaids/NavDataCache.cxx +++ b/src/Navaids/NavDataCache.cxx @@ -290,10 +290,6 @@ public: throw sg_exception("Nav-cache file is not writeable"); } - if (outer->isAnotherProcessRebuilding()) { - SG_LOG(SG_NAVCACHE, SG_ALERT, "NavDataCache: init() while another processing is rebuilding the DB"); - } - int openFlags = readOnly ? SQLITE_OPEN_READONLY : (SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE); std::string pathUtf8 = path.utf8Str(); @@ -1524,6 +1520,7 @@ bool NavDataCache::isAnotherProcessRebuilding() // (there could be multiple read-only copies in this situation) ReleaseMutex(static_fgNavCacheRebuildMutex); CloseHandle(static_fgNavCacheRebuildMutex); + static_fgNavCacheRebuildMutex = nullptr; return false; }