Skip to content
Snippets Groups Projects
Commit 4e1156fa authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

memtx: more comments on a memory safety constant

parent f612f59d
No related branches found
No related tags found
No related merge requests found
......@@ -69,6 +69,13 @@ static int memtx_index_num_reserved_extents;
static void *memtx_index_reserved_extents;
enum {
/**
* This number is calculated based on the
* max (realistic) number of insertions
* a deletion from a B-tree or an R-tree
* can lead to, and, as a result, the max
* number of new block allocations.
*/
RESERVE_EXTENTS_BEFORE_REPLACE = 16
};
......
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