summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/storage_lmdb.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp
index b00521d..3647472 100644
--- a/common/storage_lmdb.cpp
+++ b/common/storage_lmdb.cpp
@@ -531,8 +531,10 @@ void DataStore::NamedDatabase::findLatest(const QByteArray &k, const std::functi
531 prefOp = MDB_LAST; 531 prefOp = MDB_LAST;
532 } 532 }
533 rc = mdb_cursor_get(cursor, &key, &data, prefOp); 533 rc = mdb_cursor_get(cursor, &key, &data, prefOp);
534 foundValue = true; 534 if (!rc) {
535 resultHandler(QByteArray::fromRawData((char *)key.mv_data, key.mv_size), QByteArray::fromRawData((char *)data.mv_data, data.mv_size)); 535 foundValue = true;
536 resultHandler(QByteArray::fromRawData((char *)key.mv_data, key.mv_size), QByteArray::fromRawData((char *)data.mv_data, data.mv_size));
537 }
536 } 538 }
537 } 539 }
538 540