From c21913388a4dd0b11d54b8f30ac25ec636ef2592 Mon Sep 17 00:00:00 2001 From: Tamo Date: Thu, 5 Dec 2024 11:17:44 +0100 Subject: [PATCH] add the prevsnapshot flag --- heed/src/mdb/lmdb_flags.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/heed/src/mdb/lmdb_flags.rs b/heed/src/mdb/lmdb_flags.rs index f12464ac..ec679168 100644 --- a/heed/src/mdb/lmdb_flags.rs +++ b/heed/src/mdb/lmdb_flags.rs @@ -16,6 +16,8 @@ bitflags! { const NO_SUB_DIR = ffi::MDB_NOSUBDIR; /// Don't fsync after commit. const NO_SYNC = ffi::MDB_NOSYNC; + /// Open the previous transaction. + const PREVSNAPSHOT = ffi::MDB_PREVSNAPSHOT; /// Read only. const READ_ONLY = ffi::MDB_RDONLY; /// Don't fsync metapage after commit.