From 529dd17eec62a9702b8837f8f1976dfbf28fdd82 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 16 Feb 2016 17:43:22 +0100 Subject: Prepared sort indexes --- common/pipeline.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'common/pipeline.cpp') diff --git a/common/pipeline.cpp b/common/pipeline.cpp index 93d8236..35e582b 100644 --- a/common/pipeline.cpp +++ b/common/pipeline.cpp @@ -209,6 +209,7 @@ KAsync::Job Pipeline::newEntity(void const *command, size_t size) Log() << "Pipeline: wrote entity: " << key << newRevision << bufferType; Storage::mainDatabase(d->transaction, bufferType).scan(Storage::assembleKey(key, newRevision), [this, bufferType, newRevision, adaptorFactory, key](const QByteArray &, const QByteArray &value) -> bool { auto entity = GetEntity(value); + Q_ASSERT(entity->resource() || entity->local()); auto adaptor = adaptorFactory->createAdaptor(*entity); for (auto processor : d->processors[bufferType]) { processor->newEntity(key, newRevision, *adaptor, d->transaction); -- cgit v1.2.3