@kedem/okdb 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,21 @@ All notable changes to `@kedem/okdb` are documented here. Format loosely follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/); versions follow [SemVer](https://semver.org/).
|
|
5
5
|
Dates are release dates.
|
|
6
6
|
|
|
7
|
+
## [3.2.1] - 2026-11-25
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **Encrypted envs could crash (SIGSEGV) with write transactions on more than one thread.** LMDB released the writer lock
|
|
12
|
+
before releasing the ending write transaction's page list, which the next write transaction reuses. A writer on another
|
|
13
|
+
thread could start in that window, and pages still in use were unmapped: the next read faulted (in `mdb_rpage_encsum` /
|
|
14
|
+
`chacha8`). Only encrypted envs (they run LMDB's chunked page cache). The lock is now released after the list. Regression
|
|
15
|
+
test: `crates/lmdb-js-sys/tests/enc_writer_race.rs` (stock LMDB API only).
|
|
16
|
+
- **A hot backup of an encrypted store never worked.** `db.migrate.backup()` failed with "Bad address": LMDB's page-for-page
|
|
17
|
+
copy wrote straight from the memory map, which for an encrypted env is mapped in chunks, not as one view of the file. The
|
|
18
|
+
copy now reads the pages from the file (they stay encrypted). The backup also left out each env's `keyring` file (the
|
|
19
|
+
env's data key, wrapped by your key), so even a copy could not be opened; it is copied now. Test:
|
|
20
|
+
`parity_gaps::encrypted_store_hot_backup` (backs up, checks the copy is encrypted, opens it, reads every document).
|
|
21
|
+
|
|
7
22
|
## [3.2.0] - 2026-11-17
|
|
8
23
|
|
|
9
24
|
Nothing to change in code; what the first start does is under **Migration** below.
|
|
Binary file
|