refs #715 When loading data cache, prune revision file to remove keys that weren't found.

This commit is contained in:
Mathew Sutcliffe
2016-07-28 17:53:15 +01:00
parent b449487a71
commit 9339991644
2 changed files with 6 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ namespace BlackMisc
LockGuard beginUpdate(const QMap<QString, qint64> &timestamps, bool updateUuid = true, bool pinsOnly = false);
//! During update, writes a new revision file with new timestamps.
void writeNewRevision(const QMap<QString, qint64> &timestamps);
void writeNewRevision(const QMap<QString, qint64> &timestamps, const QSet<QString> &excludeKeys = {});
//! Release the revision file lock and mark everything up-to-date (called by LockGuard destructor).
//! \param keepPromises Don't break pending promises.