diff --git a/include/ircd/db/database/logs.h b/include/ircd/db/database/logs.h index 2657ea37a..364c9445a 100644 --- a/include/ircd/db/database/logs.h +++ b/include/ircd/db/database/logs.h @@ -21,12 +21,12 @@ struct ircd::db::database::logs final { database *d; - // Logger void Logv(const rocksdb::InfoLogLevel level, const char *fmt, va_list ap) noexcept override; void Logv(const char *fmt, va_list ap) noexcept override; void LogHeader(const char *fmt, va_list ap) noexcept override; - logs(database *const &d) - :d{d} - {} + rocksdb::Status Close() noexcept override; + + logs(database *const &d); + ~logs() noexcept override; }; diff --git a/include/ircd/db/database/mergeop.h b/include/ircd/db/database/mergeop.h index e9e175554..71dd76957 100644 --- a/include/ircd/db/database/mergeop.h +++ b/include/ircd/db/database/mergeop.h @@ -25,8 +25,6 @@ struct ircd::db::database::mergeop final bool Merge(const rocksdb::Slice &, const rocksdb::Slice *, const rocksdb::Slice &, std::string *, rocksdb::Logger *) const noexcept override; const char *Name() const noexcept override; - mergeop(database *const &d, merge_closure merger = nullptr) - :d{d} - ,merger{merger? std::move(merger) : ircd::db::merge_operator} - {} + mergeop(database *const &d, merge_closure merger = nullptr); + ~mergeop() noexcept; }; diff --git a/ircd/db.cc b/ircd/db.cc index 01b89d9e5..7c853af6a 100644 --- a/ircd/db.cc +++ b/ircd/db.cc @@ -1478,6 +1478,24 @@ noexcept // database::logs // +ircd::db::database::logs::logs(database *const &d) +:rocksdb::Logger{} +,d{d} +{ +} + +ircd::db::database::logs::~logs() +noexcept +{ +} + +rocksdb::Status +ircd::db::database::logs::Close() +noexcept +{ + return rocksdb::Status::NotSupported(); +} + static ircd::log::facility translate(const rocksdb::InfoLogLevel &level) @@ -1548,6 +1566,23 @@ noexcept // database::mergeop // +ircd::db::database::mergeop::mergeop(database *const &d, + merge_closure merger) +:d{d} +,merger +{ + merger? + std::move(merger): + ircd::db::merge_operator +} +{ +} + +ircd::db::database::mergeop::~mergeop() +noexcept +{ +} + const char * ircd::db::database::mergeop::Name() const noexcept