diff options
Diffstat (limited to 'common/storage')
-rw-r--r-- | common/storage/entitystore.cpp | 1 | ||||
-rw-r--r-- | common/storage/entitystore.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index 8fbc2ad..020f3fd 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp | |||
@@ -459,6 +459,7 @@ void EntityStore::indexLookup(const QByteArray &type, const QByteArray &property | |||
459 | 459 | ||
460 | void EntityStore::readLatest(const QByteArray &type, const QByteArray &uid, const std::function<void(const QByteArray &uid, const EntityBuffer &entity)> callback) | 460 | void EntityStore::readLatest(const QByteArray &type, const QByteArray &uid, const std::function<void(const QByteArray &uid, const EntityBuffer &entity)> callback) |
461 | { | 461 | { |
462 | Q_ASSERT(d); | ||
462 | auto db = DataStore::mainDatabase(d->getTransaction(), type); | 463 | auto db = DataStore::mainDatabase(d->getTransaction(), type); |
463 | db.findLatest(uid, | 464 | db.findLatest(uid, |
464 | [=](const QByteArray &key, const QByteArray &value) { | 465 | [=](const QByteArray &key, const QByteArray &value) { |
diff --git a/common/storage/entitystore.h b/common/storage/entitystore.h index 00241f2..3eb0b7b 100644 --- a/common/storage/entitystore.h +++ b/common/storage/entitystore.h | |||
@@ -37,6 +37,7 @@ class SINK_EXPORT EntityStore | |||
37 | public: | 37 | public: |
38 | typedef QSharedPointer<EntityStore> Ptr; | 38 | typedef QSharedPointer<EntityStore> Ptr; |
39 | EntityStore(const ResourceContext &resourceContext, const Sink::Log::Context &); | 39 | EntityStore(const ResourceContext &resourceContext, const Sink::Log::Context &); |
40 | ~EntityStore() = default; | ||
40 | 41 | ||
41 | //Only the pipeline may call the following functions outside of tests | 42 | //Only the pipeline may call the following functions outside of tests |
42 | bool add(const QByteArray &type, ApplicationDomain::ApplicationDomainType newEntity, bool replayToSource); | 43 | bool add(const QByteArray &type, ApplicationDomain::ApplicationDomainType newEntity, bool replayToSource); |