0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::db: Additional trivial vtable placements.

This commit is contained in:
Jason Volk 2018-08-28 15:44:03 -07:00
parent 958b176545
commit 3833aa70cb
3 changed files with 41 additions and 8 deletions

View file

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

View file

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

View file

@ -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