mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
call toku_checkpoint when the env closes [t:2001]
git-svn-id: file:///svn/toku/tokudb@14515 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
0b920d5f6c
commit
9c4739e8fd
1 changed files with 0 additions and 9 deletions
|
@ -467,17 +467,8 @@ static int toku_env_close(DB_ENV * env, u_int32_t flags) {
|
|||
toku_ydb_unlock(); // ydb lock must not be held when shutting down minicron
|
||||
toku_cachetable_minicron_shutdown(env->i->cachetable);
|
||||
if (env->i->logger) {
|
||||
#if 0
|
||||
// TODO lock problems (see test_db_remove.c). may want to require an environment.
|
||||
r0 = toku_checkpoint(env->i->cachetable, env->i->logger, NULL, NULL, NULL, NULL, NULL);
|
||||
assert(r0 == 0);
|
||||
#else
|
||||
// TODO locks?
|
||||
r0 = toku_cachetable_begin_checkpoint(env->i->cachetable, env->i->logger);
|
||||
if (r0 == 0)
|
||||
toku_cachetable_end_checkpoint(env->i->cachetable, env->i->logger, NULL, NULL, NULL);
|
||||
assert(r0 == 0);
|
||||
#endif
|
||||
r0 = toku_logger_shutdown(env->i->logger); assert(r0 == 0);
|
||||
}
|
||||
toku_ydb_lock();
|
||||
|
|
Loading…
Add table
Reference in a new issue