summaryrefslogtreecommitdiffstats
path: root/common/changereplay.cpp
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2018-06-26 11:44:11 +0200
committerMinijackson <minijackson@riseup.net>2018-07-04 15:37:14 +0200
commit922e0979e2c27ff8dbc765ae151d17c7815b98a0 (patch)
treecb031c5d3ccc31ea576f66b4f718c17f5bb0775c /common/changereplay.cpp
parent06f30d0f0d0051df97d4c34cd1a80b14857c9e9c (diff)
downloadsink-922e0979e2c27ff8dbc765ae151d17c7815b98a0.tar.gz
sink-922e0979e2c27ff8dbc765ae151d17c7815b98a0.zip
[Storage] Implement Key API
Diffstat (limited to 'common/changereplay.cpp')
-rw-r--r--common/changereplay.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/changereplay.cpp b/common/changereplay.cpp
index 0adbd78..e81f52c 100644
--- a/common/changereplay.cpp
+++ b/common/changereplay.cpp
@@ -113,7 +113,9 @@ KAsync::Job<void> ChangeReplay::replayNextRevision()
113 if (uid.isEmpty() || type.isEmpty()) { 113 if (uid.isEmpty() || type.isEmpty()) {
114 SinkErrorCtx(mLogCtx) << "Failed to read uid or type for revison: " << revision << uid << type; 114 SinkErrorCtx(mLogCtx) << "Failed to read uid or type for revison: " << revision << uid << type;
115 } else { 115 } else {
116 const auto key = DataStore::assembleKey(uid, revision); 116 //const auto key = DataStore::assembleKey(uid, revision);
117 // TODO: should not use internal representations
118 const auto key = Storage::Key(Storage::Identifier::fromDisplayByteArray(uid), revision).toInternalByteArray();
117 QByteArray entityBuffer; 119 QByteArray entityBuffer;
118 DataStore::mainDatabase(mMainStoreTransaction, type) 120 DataStore::mainDatabase(mMainStoreTransaction, type)
119 .scan(key, 121 .scan(key,