mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Make sure the mutex is held while calling sqlite3ApiExit() in
sqlite3_wal_checkpoint(). Other cleanup of WAL logic. FossilOrigin-Name: 11a85b821abff1ecb7ec8c37bc7783be9fc4ea6d
This commit is contained in:
@@ -1424,7 +1424,9 @@ void sqlite3Pragma(
|
||||
int nAuto = atoi(zRight);
|
||||
sqlite3_wal_autocheckpoint(db, nAuto);
|
||||
}
|
||||
returnSingleInt(pParse, "wal_autocheckpoint", db->nAutoCheckpoint);
|
||||
returnSingleInt(pParse, "wal_autocheckpoint",
|
||||
db->xWalCallback==sqlite3WalDefaultHook ?
|
||||
SQLITE_PTR_TO_INT(db->pWalArg) : 0);
|
||||
}else
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user