0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 07:50:57 +01:00

ircd::db: Reduce env debug noise when no compaction callback.

This commit is contained in:
Jason Volk 2018-12-28 18:18:13 -08:00
parent 12401c70aa
commit 7e023beb4f

View file

@ -3108,21 +3108,6 @@ const noexcept
"MERGE"_sv: "MERGE"_sv:
"BLOB"_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 #endif
static const compactor::callback empty; static const compactor::callback empty;
@ -3140,6 +3125,23 @@ const noexcept
if(!callback) if(!callback)
return Decision::kKeep; 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 const compactor::args args
{ {
level, slice(key), slice(oldval), newval, skip level, slice(key), slice(oldval), newval, skip