diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-06 18:15:51 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-03-06 18:15:51 +0100 |
commit | 9237f0d23fb3700244933b36116397b80f466902 (patch) | |
tree | 35e1afdd7af91feddb1df843c1d661a6e870c981 /common/typeindex.cpp | |
parent | ceac8bebf60025a4da0997a4d73de1328c04e97d (diff) | |
download | sink-9237f0d23fb3700244933b36116397b80f466902.tar.gz sink-9237f0d23fb3700244933b36116397b80f466902.zip |
lmdb cleanup
Diffstat (limited to 'common/typeindex.cpp')
-rw-r--r-- | common/typeindex.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/typeindex.cpp b/common/typeindex.cpp index 5589e13..153aa43 100644 --- a/common/typeindex.cpp +++ b/common/typeindex.cpp | |||
@@ -190,7 +190,7 @@ static QVector<QByteArray> indexLookup(Index &index, QueryBase::Comparator filte | |||
190 | 190 | ||
191 | for (const auto &lookupKey : lookupKeys) { | 191 | for (const auto &lookupKey : lookupKeys) { |
192 | index.lookup(lookupKey, [&](const QByteArray &value) { keys << value; }, | 192 | index.lookup(lookupKey, [&](const QByteArray &value) { keys << value; }, |
193 | [lookupKey](const Index::Error &error) { SinkWarning() << "Error in index: " << error.message << lookupKey; }, true); | 193 | [lookupKey](const Index::Error &error) { SinkWarning() << "Lookup error in index: " << error.message << lookupKey; }, true); |
194 | } | 194 | } |
195 | return keys; | 195 | return keys; |
196 | } | 196 | } |
@@ -272,7 +272,7 @@ QVector<QByteArray> TypeIndex::secondaryLookup<QByteArray>(const QByteArray &lef | |||
272 | Index index(indexName(leftName + rightName), *mTransaction); | 272 | Index index(indexName(leftName + rightName), *mTransaction); |
273 | const auto lookupKey = getByteArray(value); | 273 | const auto lookupKey = getByteArray(value); |
274 | index.lookup( | 274 | index.lookup( |
275 | lookupKey, [&](const QByteArray &value) { keys << value; }, [=](const Index::Error &error) { SinkWarning() << "Error in index: " << error.message << value; }); | 275 | lookupKey, [&](const QByteArray &value) { keys << value; }, [=](const Index::Error &error) { SinkWarning() << "Lookup error in secondary index: " << error.message << value << lookupKey; }); |
276 | 276 | ||
277 | return keys; | 277 | return keys; |
278 | } | 278 | } |
@@ -284,7 +284,7 @@ QVector<QByteArray> TypeIndex::secondaryLookup<QString>(const QByteArray &leftNa | |||
284 | Index index(indexName(leftName + rightName), *mTransaction); | 284 | Index index(indexName(leftName + rightName), *mTransaction); |
285 | const auto lookupKey = getByteArray(value); | 285 | const auto lookupKey = getByteArray(value); |
286 | index.lookup( | 286 | index.lookup( |
287 | lookupKey, [&](const QByteArray &value) { keys << value; }, [=](const Index::Error &error) { SinkWarning() << "Error in index: " << error.message << value; }); | 287 | lookupKey, [&](const QByteArray &value) { keys << value; }, [=](const Index::Error &error) { SinkWarning() << "Lookup error in secondary index: " << error.message << value << lookupKey; }); |
288 | 288 | ||
289 | return keys; | 289 | return keys; |
290 | } | 290 | } |