summaryrefslogtreecommitdiffstats
path: root/sinksh/syntax_modules
diff options
context:
space:
mode:
authorRémi Nicole <nicole@kolabsystems.com>2018-07-27 13:32:39 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-07-27 13:47:43 +0200
commitd1838e575baeb6cd08011645609516acbdabd6c8 (patch)
tree035b99a4d324231c8c44e0e97905383266bacba6 /sinksh/syntax_modules
parent1855b8356e4c427efdba4c932fa9f984e6ae5a43 (diff)
downloadsink-d1838e575baeb6cd08011645609516acbdabd6c8.tar.gz
sink-d1838e575baeb6cd08011645609516acbdabd6c8.zip
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
Diffstat (limited to 'sinksh/syntax_modules')
-rw-r--r--sinksh/syntax_modules/sink_inspect.cpp4
1 files changed, 3 insertions, 1 deletions
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 @@
32#include "common/bufferutils.h" 32#include "common/bufferutils.h"
33#include "common/fulltextindex.h" 33#include "common/fulltextindex.h"
34 34
35#include "storage/key.h"
36
35#include "sinksh_utils.h" 37#include "sinksh_utils.h"
36#include "state.h" 38#include "state.h"
37#include "syntaxtree.h" 39#include "syntaxtree.h"
@@ -88,7 +90,7 @@ bool inspect(const QStringList &args, State &state)
88 90
89 QSet<QByteArray> uids; 91 QSet<QByteArray> uids;
90 db.scan("", [&] (const QByteArray &key, const QByteArray &data) { 92 db.scan("", [&] (const QByteArray &key, const QByteArray &data) {
91 uids.insert(Sink::Storage::DataStore::uidFromKey(key)); 93 uids.insert(Sink::Storage::Key::fromInternalByteArray(key).identifier().toDisplayByteArray());
92 return true; 94 return true;
93 }, 95 },
94 [&](const Sink::Storage::DataStore::Error &e) { 96 [&](const Sink::Storage::DataStore::Error &e) {