a bug in readAll of cache
Main LMDBAL workfow / Archlinux (push) Successful in 45s Details

This commit is contained in:
Blue 2023-11-10 19:27:04 -03:00
parent 3307860ca6
commit 77ba8f9e7b
Signed by: blue
GPG Key ID: 9B203B252A63EE38
4 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# Changelog
# LMDBAL 0.5.3 (UNRELEASED)
### Bug fixes
- transaction error in LMDBAL::Cache::readAll
## LMDBAL 0.5.2 (November 01, 2023)
### Improvements
- RAII cursors

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.16)
project(LMDBAL
VERSION 0.5.2
VERSION 0.5.3
DESCRIPTION "LMDB (Lightning Memory-Mapped Database Manager) Abstraction Layer"
LANGUAGES CXX
)

View File

@ -1,6 +1,6 @@
# Maintainer: Yury Gubich <blue@macaw.me>
pkgname=lmdbal
pkgver=0.5.2
pkgver=0.5.3
pkgrel=1
pkgdesc="LMDB Abstraction Layer, qt5 version"
arch=('i686' 'x86_64')

View File

@ -549,7 +549,7 @@ void LMDBAL::Cache<K, V>::readAll(std::map<K, V>& out, TransactionID txn) const
} else {
if (mode != Mode::full) { //there is a room for optimization
mode = Mode::full; //I can read and deserialize only those values
Storage<K, V>::readAll(out); //that are missing in the cache
Storage<K, V>::readAll(out, txn); //that are missing in the cache
*cache = out;
abscent->clear();
sizeDifference = 0;