mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
When deleting any old OAL file before starting an RBU update or vacuum, use the same VFS as will be used for the target database, even if this is not the system default.
FossilOrigin-Name: 5a86c6cb1f16a15bdbc42544b8ed1912d9e87f04c514b8481a77442fbbd8accf
This commit is contained in:
@ -3830,7 +3830,8 @@ static void rbuSetupOal(sqlite3rbu *p, RbuState *pState){
|
||||
static void rbuDeleteOalFile(sqlite3rbu *p){
|
||||
char *zOal = rbuMPrintf(p, "%s-oal", p->zTarget);
|
||||
if( zOal ){
|
||||
sqlite3_vfs *pVfs = sqlite3_vfs_find(0);
|
||||
sqlite3_vfs *pVfs = 0;
|
||||
sqlite3_file_control(p->dbMain, "main", SQLITE_FCNTL_VFS_POINTER, &pVfs);
|
||||
assert( pVfs && p->rc==SQLITE_OK && p->zErrmsg==0 );
|
||||
pVfs->xDelete(pVfs, zOal, 0);
|
||||
sqlite3_free(zOal);
|
||||
|
Reference in New Issue
Block a user