mdbx++: remove noexcept from potentially throwing txn::put().

This commit is contained in:
yperbasis 2021-09-03 20:07:29 +02:00 committed by Leonid Yuriev
parent bf603bdffc
commit c714ee9b55

View File

@ -3606,8 +3606,7 @@ public:
inline MDBX_error_t put(map_handle map, const slice &key, slice *value,
MDBX_put_flags_t flags) noexcept;
inline void put(map_handle map, const slice &key, slice value,
put_mode mode) noexcept;
inline void put(map_handle map, const slice &key, slice value, put_mode mode);
inline void insert(map_handle map, const slice &key, slice value);
inline value_result try_insert(map_handle map, const slice &key, slice value);
inline slice insert_reserve(map_handle map, const slice &key,
@ -5166,7 +5165,7 @@ inline MDBX_error_t txn::put(map_handle map, const slice &key, slice *value,
}
inline void txn::put(map_handle map, const slice &key, slice value,
put_mode mode) noexcept {
put_mode mode) {
error::success_or_throw(put(map, key, &value, MDBX_put_flags_t(mode)));
}