Commit 8e33605c authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

add db_env_set_checkpoint_callback2 to the known lists of globals close[t:1996]

git-svn-id: file:///svn/toku/tokudb@14415 c7de825b-a66e-492c-adef-691d508d4ae1
parent dbaf980a
......@@ -8,12 +8,18 @@ const int envflags = DB_INIT_MPOOL|DB_CREATE|DB_THREAD |DB_INIT_LOCK|DB_INIT_LOG
char *namea="a.db";
static void checkpoint_callback_2_do_abort(void *UU(extra)) {
abort();
}
static void run_test (void) {
int r;
system("rm -rf " ENVDIR);
toku_os_mkdir(ENVDIR, S_IRWXU+S_IRWXG+S_IRWXO);
db_env_set_checkpoint_callback2(checkpoint_callback_2_do_abort, NULL);
DB_ENV *env;
r = db_env_create(&env, 0); CKERR(r);
r = env->open(env, ENVDIR, envflags, S_IRWXU+S_IRWXG+S_IRWXO); CKERR(r);
......
......@@ -54,6 +54,7 @@ def main():
"db_env_set_func_pwrite",
"db_env_set_func_write",
"db_env_set_checkpoint_callback",
"db_env_set_checkpoint_callback2",
"setup_dlmalloc", "dlfree", "dlmalloc", "dlrealloc" ]:
exceptsymbols[n] = 1
return checkglobals(libname, exceptsymbols, verbose)
......
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