diff options
Diffstat (limited to 'common/storage/entitystore.cpp')
-rw-r--r-- | common/storage/entitystore.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index 30c7a71..a3d9997 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp | |||
@@ -303,6 +303,15 @@ void EntityStore::cleanupRevision(qint64 revision) | |||
303 | DataStore::setCleanedUpRevision(d->transaction, revision); | 303 | DataStore::setCleanedUpRevision(d->transaction, revision); |
304 | } | 304 | } |
305 | 305 | ||
306 | void EntityStore::cleanupRevisions(qint64 revision) | ||
307 | { | ||
308 | const auto lastCleanRevision = DataStore::cleanedUpRevision(d->transaction); | ||
309 | SinkTrace() << "Cleaning up from " << lastCleanRevision + 1 << " to " << revision; | ||
310 | for (qint64 rev = lastCleanRevision + 1; rev <= revision; rev++) { | ||
311 | cleanupRevision(revision); | ||
312 | } | ||
313 | } | ||
314 | |||
306 | QVector<QByteArray> EntityStore::fullScan(const QByteArray &type) | 315 | QVector<QByteArray> EntityStore::fullScan(const QByteArray &type) |
307 | { | 316 | { |
308 | SinkTrace() << "Looking for : " << type; | 317 | SinkTrace() << "Looking for : " << type; |