Commit 4a6510fb authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:3891], add checkpoints to test

git-svn-id: file:///svn/toku/tokudb@34208 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8f79300e
...@@ -152,6 +152,10 @@ test_evictions (int nseconds) { ...@@ -152,6 +152,10 @@ test_evictions (int nseconds) {
// set the cache size to 10MB // set the cache size to 10MB
r = env->set_cachesize(env, 0, 100000, 1); CKERR(r); r = env->set_cachesize(env, 0, 100000, 1); 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);
r = env->checkpointing_set_period(env, 10);
CKERR(r);
DB *db; DB *db;
r = db_create(&db, env, 0); r = db_create(&db, env, 0);
......
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