mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::db: Downgrade error severity to allow administrative resume.
This commit is contained in:
parent
94bfe39ec6
commit
7b798645a4
1 changed files with 9 additions and 0 deletions
|
@ -2429,6 +2429,15 @@ noexcept
|
|||
return;
|
||||
}
|
||||
|
||||
// Downgrade select fatal errors to hard errors. If this downgrade
|
||||
// does not occur then it can never be cleared by a db::resume() and
|
||||
// the daemon must be restarted.
|
||||
|
||||
if(reason == rocksdb::BackgroundErrorReason::kCompaction)
|
||||
if(status->severity() == rocksdb::Status::kFatalError)
|
||||
*status = rocksdb::Status(*status, rocksdb::Status::kHardError);
|
||||
|
||||
// Save the error string to the database instance for later examination.
|
||||
d->errors.emplace_back(str);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue