summaryrefslogtreecommitdiffstats
path: root/common/storage/entitystore.cpp
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2018-06-27 12:09:24 +0200
committerMinijackson <minijackson@riseup.net>2018-07-04 15:37:14 +0200
commite27358985e6729415a8b83a85aac0350180c95bc (patch)
tree3a5f491cfb088fd9ac8e2a705538fa977fc6c955 /common/storage/entitystore.cpp
parent016fea734d09df707be9a16a4ad6a1107f41549f (diff)
downloadsink-e27358985e6729415a8b83a85aac0350180c95bc.tar.gz
sink-e27358985e6729415a8b83a85aac0350180c95bc.zip
Fix changereplay + comment special case of readLatest
Diffstat (limited to 'common/storage/entitystore.cpp')
-rw-r--r--common/storage/entitystore.cpp2
1 files changed, 2 insertions, 0 deletions
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
490{ 490{
491 Q_ASSERT(d); 491 Q_ASSERT(d);
492 Q_ASSERT(!key.isEmpty()); 492 Q_ASSERT(!key.isEmpty());
493 // TODO: we shouldn't pass whole keys to this function
494 // check the testSingle test from querytest
493 const auto internalKey = [&key]() { 495 const auto internalKey = [&key]() {
494 if(key.size() == Identifier::DISPLAY_REPR_SIZE) { 496 if(key.size() == Identifier::DISPLAY_REPR_SIZE) {
495 return Identifier::fromDisplayByteArray(key).toInternalByteArray(); 497 return Identifier::fromDisplayByteArray(key).toInternalByteArray();