mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::db: Reduce env debug noise when no compaction callback.
This commit is contained in:
parent
12401c70aa
commit
7e023beb4f
1 changed files with 17 additions and 15 deletions
32
ircd/db.cc
32
ircd/db.cc
|
@ -3108,21 +3108,6 @@ const noexcept
|
|||
"MERGE"_sv:
|
||||
"BLOB"_sv
|
||||
};
|
||||
|
||||
log::debug
|
||||
{
|
||||
log, "'%s':'%s': compaction level:%d key:%zu@%p type:%s old:%zu@%p new:%p skip:%p",
|
||||
d->name,
|
||||
c->name,
|
||||
level,
|
||||
size(key),
|
||||
data(key),
|
||||
typestr,
|
||||
size(oldval),
|
||||
data(oldval),
|
||||
(const void *)newval,
|
||||
(const void *)skip
|
||||
};
|
||||
#endif
|
||||
|
||||
static const compactor::callback empty;
|
||||
|
@ -3140,6 +3125,23 @@ const noexcept
|
|||
if(!callback)
|
||||
return Decision::kKeep;
|
||||
|
||||
#ifdef RB_DEBUG_DB_ENV
|
||||
log::debug
|
||||
{
|
||||
log, "'%s':'%s': compaction level:%d key:%zu@%p type:%s old:%zu@%p new:%p skip:%p",
|
||||
d->name,
|
||||
c->name,
|
||||
level,
|
||||
size(key),
|
||||
data(key),
|
||||
typestr,
|
||||
size(oldval),
|
||||
data(oldval),
|
||||
(const void *)newval,
|
||||
(const void *)skip
|
||||
};
|
||||
#endif
|
||||
|
||||
const compactor::args args
|
||||
{
|
||||
level, slice(key), slice(oldval), newval, skip
|
||||
|
|
Loading…
Reference in a new issue