0
0
Fork 0
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:
Jason Volk 2020-10-27 21:49:54 -07:00
parent 71879a9fa1
commit 3884e30b4c

View file

@ -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();
}