mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd::db: Clamp column arena size option.
This commit is contained in:
parent
7e7eb14e0b
commit
12771f1965
1 changed files with 7 additions and 0 deletions
|
@ -2086,6 +2086,13 @@ ircd::db::database::column::column(database &d,
|
|||
this->options.max_write_buffer_size_to_maintain = 0; //this->options.write_buffer_size * 4;
|
||||
#endif
|
||||
|
||||
this->options.arena_block_size = std::clamp
|
||||
(
|
||||
this->options.write_buffer_size / 2L,
|
||||
ulong(512_KiB),
|
||||
ulong(4_MiB)
|
||||
);
|
||||
|
||||
// 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);
|
||||
|
|
Loading…
Reference in a new issue