From 77ba8f9e7be50b5b028f58cd8dc4809076e15d6d Mon Sep 17 00:00:00 2001 From: blue Date: Fri, 10 Nov 2023 19:27:04 -0300 Subject: [PATCH] a bug in readAll of cache --- CHANGELOG.md | 4 ++++ CMakeLists.txt | 2 +- packaging/Archlinux/PKGBUILD | 2 +- src/cache.hpp | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7862d0c..1480e8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/CMakeLists.txt b/CMakeLists.txt index 3231cf3..21237e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ) diff --git a/packaging/Archlinux/PKGBUILD b/packaging/Archlinux/PKGBUILD index 0232f4e..b8542ce 100644 --- a/packaging/Archlinux/PKGBUILD +++ b/packaging/Archlinux/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Yury Gubich pkgname=lmdbal -pkgver=0.5.2 +pkgver=0.5.3 pkgrel=1 pkgdesc="LMDB Abstraction Layer, qt5 version" arch=('i686' 'x86_64') diff --git a/src/cache.hpp b/src/cache.hpp index e9ae0aa..e3c6d60 100644 --- a/src/cache.hpp +++ b/src/cache.hpp @@ -549,7 +549,7 @@ void LMDBAL::Cache::readAll(std::map& 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::readAll(out); //that are missing in the cache + Storage::readAll(out, txn); //that are missing in the cache *cache = out; abscent->clear(); sizeDifference = 0;