mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::db: Add circuit-breaker to disable compaction per-column in the descriptor.
This commit is contained in:
parent
ab77a32dce
commit
096a67ff8d
2 changed files with 6 additions and 1 deletions
|
@ -139,4 +139,8 @@ struct ircd::db::descriptor
|
|||
{
|
||||
2
|
||||
};
|
||||
|
||||
/// Circuit-breaker to disable automatic compaction specifically for this
|
||||
/// column from this descriptor.
|
||||
bool compaction {true};
|
||||
};
|
||||
|
|
|
@ -1775,7 +1775,8 @@ ircd::db::database::column::column(database &d,
|
|||
|
||||
// Conf item can be set to disable automatic compactions. For developers
|
||||
// and debugging; good for valgrind.
|
||||
this->options.disable_auto_compactions = !bool(db::auto_compact);
|
||||
this->options.disable_auto_compactions =
|
||||
!this->descriptor->compaction || !bool(db::auto_compact);
|
||||
|
||||
// Set the compaction style; we don't override this in the descriptor yet.
|
||||
//this->options.compaction_style = rocksdb::kCompactionStyleNone;
|
||||
|
|
Loading…
Reference in a new issue