diff options
author | Minijackson <minijackson@riseup.net> | 2018-06-26 11:44:11 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2018-07-04 15:37:14 +0200 |
commit | 922e0979e2c27ff8dbc765ae151d17c7815b98a0 (patch) | |
tree | cb031c5d3ccc31ea576f66b4f718c17f5bb0775c /common/changereplay.cpp | |
parent | 06f30d0f0d0051df97d4c34cd1a80b14857c9e9c (diff) | |
download | sink-922e0979e2c27ff8dbc765ae151d17c7815b98a0.tar.gz sink-922e0979e2c27ff8dbc765ae151d17c7815b98a0.zip |
[Storage] Implement Key API
Diffstat (limited to 'common/changereplay.cpp')
-rw-r--r-- | common/changereplay.cpp | 4 |
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, |