get the checkpoint tests working again [t:1961]

git-svn-id: file:///svn/toku/tokudb@14545 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2013-04-16 23:58:01 -04:00 committed by Yoni Fogel
parent 39a61f0312
commit 21ff8f9541

View file

@ -206,7 +206,7 @@ toku_checkpoint(CACHETABLE ct, TOKULOGGER logger, char **error_string,
callback_f(extra); // callback is called with checkpoint_safe_lock still held
r = toku_cachetable_end_checkpoint(ct, logger, error_string, callback2_f, extra2);
}
if (r==0) {
if (r==0 && logger) {
LSN trim_lsn = (oldest_live_lsn.lsn < logger->checkpoint_lsn.lsn) ? oldest_live_lsn : logger->checkpoint_lsn;
r = toku_logger_maybe_trim_log(logger, trim_lsn);
}