mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
recovery checks for logcursor errors refs[t:2443]
git-svn-id: file:///svn/toku/tokudb@18343 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
77c6f461e2
commit
8ac1902a65
1 changed files with 10 additions and 9 deletions
|
@ -1174,10 +1174,10 @@ static int do_recovery(RECOVER_ENV renv, const char *env_dir, const char *log_di
|
|||
if (tokudb_recovery_trace)
|
||||
recover_trace_le(__FUNCTION__, __LINE__, r, le);
|
||||
if (r != 0) {
|
||||
if (r == DB_RUNRECOVERY) {
|
||||
rr = DB_RUNRECOVERY; goto errorexit;
|
||||
}
|
||||
break;
|
||||
if (r == DB_NOTFOUND)
|
||||
break;
|
||||
rr = DB_RUNRECOVERY;
|
||||
goto errorexit;
|
||||
}
|
||||
|
||||
// trace progress
|
||||
|
@ -1238,7 +1238,8 @@ static int do_recovery(RECOVER_ENV renv, const char *env_dir, const char *log_di
|
|||
if (r != 0) {
|
||||
if (tokudb_recovery_trace)
|
||||
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
|
||||
|
@ -1247,10 +1248,10 @@ static int do_recovery(RECOVER_ENV renv, const char *env_dir, const char *log_di
|
|||
if (tokudb_recovery_trace)
|
||||
recover_trace_le(__FUNCTION__, __LINE__, r, le);
|
||||
if (r != 0) {
|
||||
if (r == DB_RUNRECOVERY) {
|
||||
rr = DB_RUNRECOVERY; goto errorexit;
|
||||
}
|
||||
break;
|
||||
if (r == DB_NOTFOUND)
|
||||
break;
|
||||
rr = DB_RUNRECOVERY;
|
||||
goto errorexit;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue