From e27358985e6729415a8b83a85aac0350180c95bc Mon Sep 17 00:00:00 2001 From: Minijackson Date: Wed, 27 Jun 2018 12:09:24 +0200 Subject: Fix changereplay + comment special case of readLatest --- common/storage/entitystore.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/storage') diff --git a/common/storage/entitystore.cpp b/common/storage/entitystore.cpp index d3420e4..3addf94 100644 --- a/common/storage/entitystore.cpp +++ b/common/storage/entitystore.cpp @@ -490,6 +490,8 @@ void EntityStore::readLatest(const QByteArray &type, const QByteArray &key, cons { Q_ASSERT(d); Q_ASSERT(!key.isEmpty()); + // TODO: we shouldn't pass whole keys to this function + // check the testSingle test from querytest const auto internalKey = [&key]() { if(key.size() == Identifier::DISPLAY_REPR_SIZE) { return Identifier::fromDisplayByteArray(key).toInternalByteArray(); -- cgit v1.2.3