Commit dbaf980a authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

debug the logcursor-empty-logfile test [t:1995]

git-svn-id: file:///svn/toku/tokudb@14414 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2708fc8f
......@@ -84,7 +84,9 @@ int toku_logfilemgr_init(TOKULOGFILEMGR lfm, const char *log_dir) {
lf_info->index = index;
// find last LSN
r = toku_logcursor_create_for_file(&cursor, log_dir, basename);
toku_logcursor_last(cursor, &entry);
assert(r == 0);
r = toku_logcursor_last(cursor, &entry);
assert(r == 0);
lf_info->maxlsn = toku_log_entry_get_lsn(entry);
// add to logfilemgr
toku_logfilemgr_add_logfile_info(lfm, lf_info);
......
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