Skip to content

Commit 61efd00

Browse files
committed
fix: with_reservation takes flag
1 parent 4fd44f3 commit 61efd00

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "signet-libmdbx"
33
description = "Idiomatic and safe MDBX wrapper"
4-
version = "0.2.0"
4+
version = "0.2.1"
55
edition = "2024"
66
rust-version = "1.92"
77
license = "MIT OR Apache-2.0"

src/tx/transaction.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,10 @@ impl Transaction<RW> {
456456
dbi: ffi::MDBX_dbi,
457457
key: impl AsRef<[u8]>,
458458
len: usize,
459+
flags: WriteFlags,
459460
f: impl FnOnce(&mut [u8]),
460461
) -> MdbxResult<()> {
461-
let buf = unsafe { self.reserve(dbi, key, len, WriteFlags::empty())? };
462+
let buf = unsafe { self.reserve(dbi, key, len, flags)? };
462463
f(buf);
463464
Ok(())
464465
}

0 commit comments

Comments
 (0)