MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / recoverUninstallWrapper

Function recoverUninstallWrapper

modules/dasSQLITE/sqlite/shell.c:16021–16030  ·  view source on GitHub ↗

** Uninstall the VFS wrapper that was installed around the file-descriptor open ** on the input database for recover handle p. Mutex RECOVER_MUTEX_ID must be ** held when this function is called. */

Source from the content-addressed store, hash-verified

16019** held when this function is called.
16020*/
16021static void recoverUninstallWrapper(sqlite3_recover *p){
16022 sqlite3_file *pFd = 0;
16023 recoverAssertMutexHeld();
16024 sqlite3_file_control(p->dbIn, p->zDb,SQLITE_FCNTL_FILE_POINTER,(void*)&pFd);
16025 if( pFd && pFd->pMethods ){
16026 pFd->pMethods = recover_g.pMethods;
16027 recover_g.pMethods = 0;
16028 recover_g.p = 0;
16029 }
16030}
16031
16032/*
16033** This function does the work of a single sqlite3_recover_step() call. It

Callers 1

recoverStepFunction · 0.85

Calls 1

recoverAssertMutexHeldFunction · 0.85

Tested by

no test coverage detected