diff options
Diffstat (limited to 'common/storage_lmdb.cpp')
-rw-r--r-- | common/storage_lmdb.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 2f6e7e1..ddad69d 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp | |||
@@ -570,11 +570,8 @@ int DataStore::NamedDatabase::findAllInRange(const QByteArray &lowerBound, const | |||
570 | return 0; | 570 | return 0; |
571 | } | 571 | } |
572 | 572 | ||
573 | int numberOfRetrievedValues = 0; | 573 | MDB_val firstKey = {(size_t)lowerBound.size(), (void *)lowerBound.constData()}; |
574 | 574 | MDB_val idealLastKey = {(size_t)upperBound.size(), (void *)upperBound.constData()}; | |
575 | MDB_val firstKey = { .mv_size = (size_t)lowerBound.size(), .mv_data = (void *)lowerBound.constData() }; | ||
576 | MDB_val idealLastKey = { .mv_size = (size_t)upperBound.size(), .mv_data = (void *)upperBound.constData() }; | ||
577 | MDB_val lastKey = idealLastKey; | ||
578 | MDB_val currentKey; | 575 | MDB_val currentKey; |
579 | MDB_val data; | 576 | MDB_val data; |
580 | 577 | ||