summaryrefslogtreecommitdiffstats
path: root/common/storage/entitystore.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-19 16:15:23 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-21 09:18:50 +0200
commit9a5f0a14714ec9a6a71a003b72e5ed3520dfa125 (patch)
tree78b2b4ac6fff648998b6e42aa0e4e0d8fb8144b7 /common/storage/entitystore.cpp
parent67ec34a8df3a2c3fe5ffbfd74ef06ee8a52ed2bb (diff)
downloadsink-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.cpp9
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
306void 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
306QVector<QByteArray> EntityStore::fullScan(const QByteArray &type) 315QVector<QByteArray> EntityStore::fullScan(const QByteArray &type)
307{ 316{
308 SinkTrace() << "Looking for : " << type; 317 SinkTrace() << "Looking for : " << type;