forked from blue/lmdbal
a bug in readAll of cache
This commit is contained in:
parent
3307860ca6
commit
77ba8f9e7b
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
# LMDBAL 0.5.3 (UNRELEASED)
|
||||||
|
### Bug fixes
|
||||||
|
- transaction error in LMDBAL::Cache::readAll
|
||||||
|
|
||||||
## LMDBAL 0.5.2 (November 01, 2023)
|
## LMDBAL 0.5.2 (November 01, 2023)
|
||||||
### Improvements
|
### Improvements
|
||||||
- RAII cursors
|
- RAII cursors
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
project(LMDBAL
|
project(LMDBAL
|
||||||
VERSION 0.5.2
|
VERSION 0.5.3
|
||||||
DESCRIPTION "LMDB (Lightning Memory-Mapped Database Manager) Abstraction Layer"
|
DESCRIPTION "LMDB (Lightning Memory-Mapped Database Manager) Abstraction Layer"
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Maintainer: Yury Gubich <blue@macaw.me>
|
# Maintainer: Yury Gubich <blue@macaw.me>
|
||||||
pkgname=lmdbal
|
pkgname=lmdbal
|
||||||
pkgver=0.5.2
|
pkgver=0.5.3
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="LMDB Abstraction Layer, qt5 version"
|
pkgdesc="LMDB Abstraction Layer, qt5 version"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
|
@ -549,7 +549,7 @@ void LMDBAL::Cache<K, V>::readAll(std::map<K, V>& out, TransactionID txn) const
|
|||||||
} else {
|
} else {
|
||||||
if (mode != Mode::full) { //there is a room for optimization
|
if (mode != Mode::full) { //there is a room for optimization
|
||||||
mode = Mode::full; //I can read and deserialize only those values
|
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;
|
*cache = out;
|
||||||
abscent->clear();
|
abscent->clear();
|
||||||
sizeDifference = 0;
|
sizeDifference = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user