diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-19 16:15:23 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-10-21 09:18:50 +0200 |
commit | 9a5f0a14714ec9a6a71a003b72e5ed3520dfa125 (patch) | |
tree | 78b2b4ac6fff648998b6e42aa0e4e0d8fb8144b7 /common/storage/entitystore.cpp | |
parent | 67ec34a8df3a2c3fe5ffbfd74ef06ee8a52ed2bb (diff) | |
download | sink-9a5f0a14714ec9a6a71a003b72e5ed3520dfa125.tar.gz sink-9a5f0a14714ec9a6a71a003b72e5ed3520dfa125.zip |
Removed the whole revision cleanup into the entitystore
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; |