mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +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;
|
database *d;
|
||||||
|
|
||||||
// Logger
|
|
||||||
void Logv(const rocksdb::InfoLogLevel level, const char *fmt, va_list ap) noexcept override;
|
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 Logv(const char *fmt, va_list ap) noexcept override;
|
||||||
void LogHeader(const char *fmt, va_list ap) noexcept override;
|
void LogHeader(const char *fmt, va_list ap) noexcept override;
|
||||||
|
|
||||||
logs(database *const &d)
|
rocksdb::Status Close() noexcept override;
|
||||||
:d{d}
|
|
||||||
{}
|
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;
|
bool Merge(const rocksdb::Slice &, const rocksdb::Slice *, const rocksdb::Slice &, std::string *, rocksdb::Logger *) const noexcept override;
|
||||||
const char *Name() const noexcept override;
|
const char *Name() const noexcept override;
|
||||||
|
|
||||||
mergeop(database *const &d, merge_closure merger = nullptr)
|
mergeop(database *const &d, merge_closure merger = nullptr);
|
||||||
:d{d}
|
~mergeop() noexcept;
|
||||||
,merger{merger? std::move(merger) : ircd::db::merge_operator}
|
|
||||||
{}
|
|
||||||
};
|
};
|
||||||
|
|
35
ircd/db.cc
35
ircd/db.cc
|
@ -1478,6 +1478,24 @@ noexcept
|
||||||
// database::logs
|
// 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
|
static
|
||||||
ircd::log::facility
|
ircd::log::facility
|
||||||
translate(const rocksdb::InfoLogLevel &level)
|
translate(const rocksdb::InfoLogLevel &level)
|
||||||
|
@ -1548,6 +1566,23 @@ noexcept
|
||||||
// database::mergeop
|
// 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 *
|
const char *
|
||||||
ircd::db::database::mergeop::Name()
|
ircd::db::database::mergeop::Name()
|
||||||
const noexcept
|
const noexcept
|
||||||
|
|
Loading…
Reference in a new issue