mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-19 19:39:26 +08:00
mdbx++: добавление txn::make_broken()
.
This commit is contained in:
5
mdbx.h++
5
mdbx.h++
@@ -3799,6 +3799,9 @@ public:
|
||||
/// \brief Renew read-only transaction.
|
||||
inline void renew_reading();
|
||||
|
||||
/// \brief Marks transaction as broken to prevent further operations.
|
||||
inline void make_broken();
|
||||
|
||||
/// \brief Park read-only transaction.
|
||||
inline void park_reading(bool autounpark = true);
|
||||
|
||||
@@ -5578,6 +5581,8 @@ inline uint64_t txn::id() const {
|
||||
|
||||
inline void txn::reset_reading() { error::success_or_throw(::mdbx_txn_reset(handle_)); }
|
||||
|
||||
inline void txn::make_broken() { error::success_or_throw(::mdbx_txn_break(handle_)); }
|
||||
|
||||
inline void txn::renew_reading() { error::success_or_throw(::mdbx_txn_renew(handle_)); }
|
||||
|
||||
inline void txn::park_reading(bool autounpark) { error::success_or_throw(::mdbx_txn_park(handle_, autounpark)); }
|
||||
|
Reference in New Issue
Block a user