From 922e0979e2c27ff8dbc765ae151d17c7815b98a0 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Tue, 26 Jun 2018 11:44:11 +0200 Subject: [Storage] Implement Key API --- common/changereplay.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/changereplay.cpp') 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 ChangeReplay::replayNextRevision() if (uid.isEmpty() || type.isEmpty()) { SinkErrorCtx(mLogCtx) << "Failed to read uid or type for revison: " << revision << uid << type; } else { - const auto key = DataStore::assembleKey(uid, revision); + //const auto key = DataStore::assembleKey(uid, revision); + // TODO: should not use internal representations + const auto key = Storage::Key(Storage::Identifier::fromDisplayByteArray(uid), revision).toInternalByteArray(); QByteArray entityBuffer; DataStore::mainDatabase(mMainStoreTransaction, type) .scan(key, -- cgit v1.2.3