0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

ircd::db: Move callback into handler; fixes errors from reference member.

This commit is contained in:
Jason Volk 2020-05-12 18:51:21 -07:00
parent b91c768c57
commit fde100bb93

View file

@ -161,7 +161,7 @@ struct ircd::db::txn::handler
using Slice = rocksdb::Slice;
const database &d;
const std::function<bool (const delta &)> &cb;
std::function<bool (const delta &)> cb;
bool _continue {true};
Status callback(const delta &) noexcept;
@ -180,8 +180,8 @@ struct ircd::db::txn::handler
Status PutCF(const uint32_t cfid, const Slice &, const Slice &) noexcept override;
handler(const database &d,
const std::function<bool (const delta &)> &cb)
std::function<bool (const delta &)> cb)
:d{d}
,cb{cb}
,cb{std::move(cb)}
{}
};