Skip to content
Snippets Groups Projects
Commit f40ab7f1 authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Roman Tsisyk
Browse files

vinyl: fix page_size and range_size defaults

If the value of range_size is absent in the _index system space, it will
be initialized to 0 in struct index_def. This will lead to insane range
splitting in vinyl and, as a result, file descriptor exhaustion. We ran
into this problem after restoring memtx spaces as vinyl using tarantool
dump utility (the latter simply replaces 'memtx' with 'vinyl' in the
_space system space on restore). To avoid a debacle like this in future,
let's use hardcoded defaults if vinyl options were omitted in the _index
system space on insertion. The default values are the same we use for
the corresponding box.cfg options. We already do it for run_size_ratio,
run_count_per_level, and bloom_fpr so let's do it for range_size and
page_size too.

Closes #3019
parent dd48ef92
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment