mirror of
https://github.com/matrix-construct/construct
synced 2025-02-16 16:50:12 +01:00
ircd::db::txn: Add release for the rocksdb::WriteBatch to interface.
This commit is contained in:
parent
71879a9fa1
commit
3884e30b4c
1 changed files with 9 additions and 1 deletions
|
@ -65,8 +65,9 @@ struct ircd::db::txn
|
|||
void operator()(database &, const sopts & = {});
|
||||
void operator()(const sopts & = {});
|
||||
|
||||
// clear
|
||||
// reset
|
||||
void clear();
|
||||
auto release() noexcept;
|
||||
|
||||
txn() = default;
|
||||
txn(database &);
|
||||
|
@ -138,3 +139,10 @@ const
|
|||
|
||||
return ret;
|
||||
}
|
||||
|
||||
inline auto
|
||||
ircd::db::txn::release()
|
||||
noexcept
|
||||
{
|
||||
return wb.release();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue