diff options
Diffstat (limited to 'common/storage/entitystore.cpp')
-rw-r--r-- | common/storage/entitystore.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index b7309ab..4cb4641 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp | |||
@@ -320,6 +320,11 @@ void EntityStore::cleanupEntityRevisionsUntil(qint64 revision) | |||
320 | { | 320 | { |
321 | const auto uid = DataStore::getUidFromRevision(d->transaction, revision); | 321 | const auto uid = DataStore::getUidFromRevision(d->transaction, revision); |
322 | const auto bufferType = DataStore::getTypeFromRevision(d->transaction, revision); | 322 | const auto bufferType = DataStore::getTypeFromRevision(d->transaction, revision); |
323 | if (bufferType.isEmpty() || uid.isEmpty()) { | ||
324 | SinkErrorCtx(d->logCtx) << "Failed to find revision during cleanup: " << revision; | ||
325 | Q_ASSERT(false); | ||
326 | return; | ||
327 | } | ||
323 | SinkTraceCtx(d->logCtx) << "Cleaning up revision " << revision << uid << bufferType; | 328 | SinkTraceCtx(d->logCtx) << "Cleaning up revision " << revision << uid << bufferType; |
324 | DataStore::mainDatabase(d->transaction, bufferType) | 329 | DataStore::mainDatabase(d->transaction, bufferType) |
325 | .scan(uid, | 330 | .scan(uid, |