diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-18 16:02:40 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-01-18 16:02:40 +0100 |
commit | 4983c40b580a2421c9be43760e6a8bebdb156ef3 (patch) | |
tree | 822416b239d0c1f702c88bc11d98a75a45a1e537 /common/index.cpp | |
parent | 62d222f20de7558ebb266efdcadf458e3807e406 (diff) | |
download | sink-4983c40b580a2421c9be43760e6a8bebdb156ef3.tar.gz sink-4983c40b580a2421c9be43760e6a8bebdb156ef3.zip |
Debug output
Diffstat (limited to 'common/index.cpp')
-rw-r--r-- | common/index.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/index.cpp b/common/index.cpp index c864e77..f3d05f1 100644 --- a/common/index.cpp +++ b/common/index.cpp | |||
@@ -44,6 +44,6 @@ QByteArray Index::lookup(const QByteArray &key) | |||
44 | { | 44 | { |
45 | QByteArray result; | 45 | QByteArray result; |
46 | //We have to create a deep copy, otherwise the returned data may become invalid when the transaction ends. | 46 | //We have to create a deep copy, otherwise the returned data may become invalid when the transaction ends. |
47 | lookup(key, [&result](const QByteArray &value) { result = QByteArray(value.constData(), value.size()); }, [this](const Index::Error &error) { SinkTrace() << "Error while retrieving value" << error.message; }); | 47 | lookup(key, [&result](const QByteArray &value) { result = QByteArray(value.constData(), value.size()); }, [this](const Index::Error &error) { SinkWarning() << "Error while retrieving value" << error.message; }); |
48 | return result; | 48 | return result; |
49 | } | 49 | } |