1
0
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:
drh
2010-05-03 13:37:30 +00:00
parent 87c1fe1b69
commit b033d8b9dc
5 changed files with 51 additions and 40 deletions

View File

@@ -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