mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd::db: Additional trivial vtable placements.
This commit is contained in:
parent
958b176545
commit
3833aa70cb
3 changed files with 41 additions and 8 deletions
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
35
ircd/db.cc
35
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
|
||||
|
|
Loading…
Reference in a new issue