diff --git a/ircd/db.h b/ircd/db.h index 9fff1829e..928d84348 100644 --- a/ircd/db.h +++ b/ircd/db.h @@ -161,7 +161,7 @@ struct ircd::db::txn::handler using Slice = rocksdb::Slice; const database &d; - const std::function &cb; + std::function 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 &cb) + std::function cb) :d{d} - ,cb{cb} + ,cb{std::move(cb)} {} };