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

Set some redzones. Refs #2862. [t:2862]

git-svn-id: file:///svn/toku/tokudb@23043 c7de825b-a66e-492c-adef-691d508d4ae1
parent cb86a05d
...@@ -100,6 +100,7 @@ static void UU() ...@@ -100,6 +100,7 @@ static void UU()
int r; int r;
r = db_env_create(&env, 0); r = db_env_create(&env, 0);
CKERR(r); CKERR(r);
r = env->set_redzone(env, 0); CKERR(r);
r = env->set_default_bt_compare(env, int64_dbt_cmp); r = env->set_default_bt_compare(env, int64_dbt_cmp);
CKERR(r); CKERR(r);
r = env->set_default_dup_compare(env, int64_dbt_cmp); r = env->set_default_dup_compare(env, int64_dbt_cmp);
......
...@@ -119,6 +119,7 @@ test_main(int argc, char *const argv[]) { ...@@ -119,6 +119,7 @@ test_main(int argc, char *const argv[]) {
DB_TXN *txn; DB_TXN *txn;
{ {
r = db_env_create(&env, 0); CKERR(r); r = db_env_create(&env, 0); CKERR(r);
r = env->set_redzone(env, 0); CKERR(r);
r=env->open(env, ENVDIR, DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_CREATE|DB_PRIVATE, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r); r=env->open(env, ENVDIR, DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_CREATE|DB_PRIVATE, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r);
env->set_errfile(env, stderr); env->set_errfile(env, stderr);
r=env->txn_begin(env, 0, &txn, 0); CKERR(r); r=env->txn_begin(env, 0, &txn, 0); CKERR(r);
......
...@@ -116,6 +116,7 @@ test_main(int argc, char *const argv[]) { ...@@ -116,6 +116,7 @@ test_main(int argc, char *const argv[]) {
DB_TXN *txn; DB_TXN *txn;
{ {
r = db_env_create(&env, 0); CKERR(r); r = db_env_create(&env, 0); CKERR(r);
r = env->set_redzone(env, 0); CKERR(r);
r=env->open(env, ENVDIR, DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_CREATE|DB_PRIVATE, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r); r=env->open(env, ENVDIR, DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_MPOOL|DB_INIT_TXN|DB_CREATE|DB_PRIVATE, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r);
env->set_errfile(env, stderr); env->set_errfile(env, stderr);
r=env->txn_begin(env, 0, &txn, 0); CKERR(r); r=env->txn_begin(env, 0, &txn, 0); CKERR(r);
......
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