From d1838e575baeb6cd08011645609516acbdabd6c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Nicole?= Date: Fri, 27 Jul 2018 13:32:39 +0200 Subject: New Key API in storage layer Summary: - Use object oriented paradigm for Keys / Identifiers /Revisions - "Compress" keys by using byte representation of Uuids - Still some cleaning left to do - Also run some benchmarks - I'm questioning whether files other than entitystore (tests excluded) are allowed to access this API Reviewers: cmollekopf Reviewed By: cmollekopf Tags: #sink Differential Revision: https://phabricator.kde.org/D13735 --- sinksh/syntax_modules/sink_inspect.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sinksh/syntax_modules/sink_inspect.cpp') diff --git a/sinksh/syntax_modules/sink_inspect.cpp b/sinksh/syntax_modules/sink_inspect.cpp index e0e30c7..7a41ef0 100644 --- a/sinksh/syntax_modules/sink_inspect.cpp +++ b/sinksh/syntax_modules/sink_inspect.cpp @@ -32,6 +32,8 @@ #include "common/bufferutils.h" #include "common/fulltextindex.h" +#include "storage/key.h" + #include "sinksh_utils.h" #include "state.h" #include "syntaxtree.h" @@ -88,7 +90,7 @@ bool inspect(const QStringList &args, State &state) QSet uids; db.scan("", [&] (const QByteArray &key, const QByteArray &data) { - uids.insert(Sink::Storage::DataStore::uidFromKey(key)); + uids.insert(Sink::Storage::Key::fromInternalByteArray(key).identifier().toDisplayByteArray()); return true; }, [&](const Sink::Storage::DataStore::Error &e) { -- cgit v1.2.3