Commit c75b6584 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#3458 use the brt default node size in the brtloader refs[t:3458]

git-svn-id: file:///svn/toku/tokudb@30269 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0e497331
...@@ -69,7 +69,7 @@ static size_t do_fwrite (const void *ptr, size_t size, size_t nmemb, FILE *strea ...@@ -69,7 +69,7 @@ static size_t do_fwrite (const void *ptr, size_t size, size_t nmemb, FILE *strea
// 1024 is the right size_factor for production. // 1024 is the right size_factor for production.
// Different values for these sizes may be used for testing. // Different values for these sizes may be used for testing.
static uint32_t size_factor = 1024; static uint32_t size_factor = 1024;
static uint32_t default_loader_nodesize = (1<<22); static uint32_t default_loader_nodesize = BRT_DEFAULT_NODE_SIZE;
enum { EXTRACTOR_QUEUE_DEPTH = 2, enum { EXTRACTOR_QUEUE_DEPTH = 2,
FILE_BUFFER_SIZE = 1<<24, FILE_BUFFER_SIZE = 1<<24,
...@@ -87,7 +87,7 @@ void ...@@ -87,7 +87,7 @@ void
toku_brtloader_set_size_factor(uint32_t factor) { toku_brtloader_set_size_factor(uint32_t factor) {
// For test purposes only // For test purposes only
size_factor = factor; size_factor = factor;
default_loader_nodesize = (size_factor==1) ? (1<<15) : (1<<22); default_loader_nodesize = (size_factor==1) ? (1<<15) : BRT_DEFAULT_NODE_SIZE;
} }
uint64_t uint64_t
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment