mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::db: Fix WriteStallInfo reflection and log message.
This commit is contained in:
parent
34e330d77b
commit
ee670af436
1 changed files with 14 additions and 11 deletions
25
ircd/db.cc
25
ircd/db.cc
|
@ -2382,24 +2382,27 @@ noexcept
|
|||
(const rocksdb::WriteStallCondition &c)
|
||||
-> string_view
|
||||
{
|
||||
return
|
||||
c == rocksdb::WriteStallCondition::kNormal?
|
||||
"NORMAL"_sv:
|
||||
c == rocksdb::WriteStallCondition::kDelayed?
|
||||
"DELAYED"_sv:
|
||||
c == rocksdb::WriteStallCondition::kStopped?
|
||||
"STOPPED"_sv:
|
||||
"UNKNOWN"_sv;
|
||||
switch(c)
|
||||
{
|
||||
case rocksdb::WriteStallCondition::kNormal:
|
||||
return "NORMAL";
|
||||
|
||||
case rocksdb::WriteStallCondition::kDelayed:
|
||||
return "DELAYED";
|
||||
|
||||
case rocksdb::WriteStallCondition::kStopped:
|
||||
return "STOPPED";
|
||||
}
|
||||
|
||||
return "??????";
|
||||
}};
|
||||
|
||||
log::warning
|
||||
{
|
||||
rog, "'%s' stall condition column[%s] %d (%s) -> %d (%s)",
|
||||
rog, "'%s' stall condition column[%s] %s -> %s",
|
||||
d->name,
|
||||
info.cf_name,
|
||||
info.condition.prev,
|
||||
str(info.condition.prev),
|
||||
info.condition.cur,
|
||||
str(info.condition.cur),
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue