mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
#4222 get the jemalloc chunk size refs[t:4222]
git-svn-id: file:///svn/toku/tokudb@37542 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
2419230dda
commit
68da600038
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ toku_memory_startup(void) {
|
|||
if (result == 0) {
|
||||
size_t lg_chunk; // log2 of the mmap threshold
|
||||
size_t lg_chunk_length = sizeof lg_chunk;
|
||||
result = mallctl_f("lg_chunk", &lg_chunk, &lg_chunk_length, NULL, 0);
|
||||
result = mallctl_f("opt.lg_chunk", &lg_chunk, &lg_chunk_length, NULL, 0);
|
||||
if (result == 0)
|
||||
status.mmap_threshold = 1 << lg_chunk;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue