Skip to content

Commit

Permalink
Merge pull request #8670 from DonLakeFlyer/ParamCache
Browse files Browse the repository at this point in the history
Cache new metadata if versions are equal
  • Loading branch information
DonLakeFlyer authored Apr 18, 2020
2 parents 09a98e3 + 0f40f96 commit 4bec5be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FactSystem/ParameterManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1448,9 +1448,9 @@ void ParameterManager::cacheMetaDataFile(const QString& metaDataFile, MAV_AUTOPI
cacheNewFile = true;
} else if (cacheMajorVersion == newMajorVersion) {
// Direct hit on major version in cache:
// Cache new file if newer minor version
// Also delete older cache file
if (newMinorVersion > cacheMinorVersion) {
// Cache new file if newer/equal minor version. We cache if equal to allow flashing test builds with new parameter metadata.
// Also delete older cache file.
if (newMinorVersion >= cacheMinorVersion) {
cacheNewFile = true;
QFile::remove(cacheHit);
}
Expand Down

0 comments on commit 4bec5be

Please sign in to comment.