Commit 62de1d71 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Make redzone smaller. Refs #3037. [t:3037]

git-svn-id: file:///svn/toku/tokudb@25539 c7de825b-a66e-492c-adef-691d508d4ae1
parent 78654d32
...@@ -106,10 +106,11 @@ static void run_test(void) ...@@ -106,10 +106,11 @@ static void run_test(void)
int r; int r;
r = db_env_create(&env, 0); CKERR(r); r = db_env_create(&env, 0); CKERR(r);
if (littlenode) { if (littlenode) {
r = env->set_cachesize(env, 0, 512*1024, 1); CKERR(r); r = env->set_cachesize(env, 0, 512*1024, 1); CKERR(r);
} }
r = env->set_redzone(env, 0); CKERR(r);
int envflags = DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | DB_CREATE | DB_PRIVATE; int envflags = DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | DB_CREATE | DB_PRIVATE;
r = env->open(env, env_dir, envflags, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r); r = env->open(env, env_dir, envflags, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r);
env->set_errfile(env, stderr); env->set_errfile(env, stderr);
r = env->checkpointing_set_period(env, 1); CKERR(r); r = env->checkpointing_set_period(env, 1); CKERR(r);
......
...@@ -128,6 +128,7 @@ static void run_test(int checkpoint_period) ...@@ -128,6 +128,7 @@ static void run_test(int checkpoint_period)
if (littlenode) { if (littlenode) {
r = env->set_cachesize(env, 0, 512*1024, 1); CKERR(r); r = env->set_cachesize(env, 0, 512*1024, 1); CKERR(r);
} }
r = env->set_redzone(env, 0); CKERR(r);
int envflags = DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | DB_CREATE | DB_PRIVATE; int envflags = DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | DB_CREATE | DB_PRIVATE;
r = env->open(env, env_dir, envflags, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r); r = env->open(env, env_dir, envflags, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r);
env->set_errfile(env, stderr); env->set_errfile(env, stderr);
......
...@@ -129,6 +129,7 @@ static void run_test(void) ...@@ -129,6 +129,7 @@ static void run_test(void)
if (littlenode) { if (littlenode) {
r = env->set_cachesize(env, 0, 512*1024, 1); CKERR(r); r = env->set_cachesize(env, 0, 512*1024, 1); CKERR(r);
} }
r = env->set_redzone(env, 0); CKERR(r);
int envflags = DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | DB_CREATE | DB_PRIVATE; int envflags = DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | DB_CREATE | DB_PRIVATE;
r = env->open(env, env_dir, envflags, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r); r = env->open(env, env_dir, envflags, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r);
env->set_errfile(env, stderr); env->set_errfile(env, stderr);
......
...@@ -166,6 +166,7 @@ static void run_test(void) ...@@ -166,6 +166,7 @@ static void run_test(void)
if (littlenode) { if (littlenode) {
r = env->set_cachesize(env, 0, 512*1024, 1); CKERR(r); r = env->set_cachesize(env, 0, 512*1024, 1); CKERR(r);
} }
r = env->set_redzone(env, 0); CKERR(r);
int envflags = DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | DB_CREATE | DB_PRIVATE; int envflags = DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | DB_CREATE | DB_PRIVATE;
r = env->open(env, env_dir, envflags, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r); r = env->open(env, env_dir, envflags, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r);
env->set_errfile(env, stderr); env->set_errfile(env, stderr);
......
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