** Do a unit of work towards the recovery job. Return SQLITE_OK if ** no error has occurred but database recovery is not finished, SQLITE_DONE ** if database recovery has been successfully completed, or an SQLite ** error code if an error has occurred. */
| 16285 | ** error code if an error has occurred. |
| 16286 | */ |
| 16287 | int sqlite3_recover_step(sqlite3_recover *p){ |
| 16288 | if( p==0 ) return SQLITE_NOMEM; |
| 16289 | if( p->errCode==SQLITE_OK ) recoverStep(p); |
| 16290 | if( p->eState==RECOVER_STATE_DONE && p->errCode==SQLITE_OK ){ |
| 16291 | return SQLITE_DONE; |
| 16292 | } |
| 16293 | return p->errCode; |
| 16294 | } |
| 16295 | |
| 16296 | /* |
| 16297 | ** Do the configured recovery operation. Return SQLITE_OK if successful, or |
no test coverage detected