0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd::db: Mask interruption; noexcept in filter overrides.

This commit is contained in:
Jason Volk 2018-09-19 16:55:29 -07:00
parent 7427ec991c
commit c1a2e44ce0
2 changed files with 8 additions and 6 deletions

View file

@ -25,9 +25,9 @@ final
database *d;
db::compactor user;
const char *Name() const override;
bool IgnoreSnapshots() const override;
Decision FilterV2(const int level, const Slice &key, const ValueType v, const Slice &oldval, std::string *newval, std::string *skipuntil) const override;
const char *Name() const noexcept override;
bool IgnoreSnapshots() const noexcept override;
Decision FilterV2(const int level, const Slice &key, const ValueType v, const Slice &oldval, std::string *newval, std::string *skipuntil) const noexcept override;
compaction_filter(column *const &c, db::compactor);
~compaction_filter() noexcept override;

View file

@ -2409,8 +2409,10 @@ ircd::db::database::compaction_filter::FilterV2(const int level,
const Slice &oldval,
std::string *const newval,
std::string *const skip)
const
const noexcept
{
const ctx::uninterruptible::nothrow ui;
#ifdef RB_DEBUG_DB_ENV
const auto typestr
{
@ -2468,14 +2470,14 @@ const
bool
ircd::db::database::compaction_filter::IgnoreSnapshots()
const
const noexcept
{
return false;
}
const char *
ircd::db::database::compaction_filter::Name()
const
const noexcept
{
assert(c);
return db::name(*c).c_str();