Commit 9cf0c76e authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

recovery checks for logcursor errors refs[t:2443]

git-svn-id: file:///svn/toku/tokudb@18343 c7de825b-a66e-492c-adef-691d508d4ae1
parent 9faf3006
...@@ -1174,10 +1174,10 @@ static int do_recovery(RECOVER_ENV renv, const char *env_dir, const char *log_di ...@@ -1174,10 +1174,10 @@ static int do_recovery(RECOVER_ENV renv, const char *env_dir, const char *log_di
if (tokudb_recovery_trace) if (tokudb_recovery_trace)
recover_trace_le(__FUNCTION__, __LINE__, r, le); recover_trace_le(__FUNCTION__, __LINE__, r, le);
if (r != 0) { if (r != 0) {
if (r == DB_RUNRECOVERY) { if (r == DB_NOTFOUND)
rr = DB_RUNRECOVERY; goto errorexit;
}
break; break;
rr = DB_RUNRECOVERY;
goto errorexit;
} }
// trace progress // trace progress
...@@ -1238,7 +1238,8 @@ static int do_recovery(RECOVER_ENV renv, const char *env_dir, const char *log_di ...@@ -1238,7 +1238,8 @@ static int do_recovery(RECOVER_ENV renv, const char *env_dir, const char *log_di
if (r != 0) { if (r != 0) {
if (tokudb_recovery_trace) if (tokudb_recovery_trace)
fprintf(stderr, "DB_RUNRECOVERY: %s:%d r=%d\n", __FUNCTION__, __LINE__, r); fprintf(stderr, "DB_RUNRECOVERY: %s:%d r=%d\n", __FUNCTION__, __LINE__, r);
rr = DB_RUNRECOVERY; goto errorexit; rr = DB_RUNRECOVERY;
goto errorexit;
} }
// get the next log entry // get the next log entry
...@@ -1247,10 +1248,10 @@ static int do_recovery(RECOVER_ENV renv, const char *env_dir, const char *log_di ...@@ -1247,10 +1248,10 @@ static int do_recovery(RECOVER_ENV renv, const char *env_dir, const char *log_di
if (tokudb_recovery_trace) if (tokudb_recovery_trace)
recover_trace_le(__FUNCTION__, __LINE__, r, le); recover_trace_le(__FUNCTION__, __LINE__, r, le);
if (r != 0) { if (r != 0) {
if (r == DB_RUNRECOVERY) { if (r == DB_NOTFOUND)
rr = DB_RUNRECOVERY; goto errorexit;
}
break; break;
rr = DB_RUNRECOVERY;
goto errorexit;
} }
} }
......
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