Lines Matching defs:pSnapshot

10641   sqlite3_snapshot *pSnapshot
15352 SQLITE_PRIVATE int sqlite3PagerSnapshotOpen(Pager*, sqlite3_snapshot *pSnapshot);
15354 SQLITE_PRIVATE int sqlite3PagerSnapshotCheck(Pager *pPager, sqlite3_snapshot *pSnapshot);
55479 SQLITE_PRIVATE void sqlite3WalSnapshotOpen(Wal *pWal, sqlite3_snapshot *pSnapshot);
55481 SQLITE_PRIVATE int sqlite3WalSnapshotCheck(Wal *pWal, sqlite3_snapshot *pSnapshot);
63279 ** If this is a WAL database, store a pointer to pSnapshot. Next time a
63285 sqlite3_snapshot *pSnapshot
63289 sqlite3WalSnapshotOpen(pPager->pWal, pSnapshot);
63322 SQLITE_PRIVATE int sqlite3PagerSnapshotCheck(Pager *pPager, sqlite3_snapshot *pSnapshot){
63325 rc = sqlite3WalSnapshotCheck(pPager->pWal, pSnapshot);
63896 WalIndexHdr *pSnapshot; /* Start transaction here if not NULL */
66162 && (pWal->pSnapshot==0 || pWal->hdr.mxFrame==0)
66204 if( pWal->pSnapshot && pWal->pSnapshot->mxFrame<mxFrame ){
66205 mxFrame = pWal->pSnapshot->mxFrame;
66385 WalIndexHdr *pSnapshot = pWal->pSnapshot;
66391 if( pSnapshot ){
66392 if( memcmp(pSnapshot, &pWal->hdr, sizeof(WalIndexHdr))!=0 ){
66399 ** snapshot X, where X is later in the wal file than pSnapshot, but
66425 if( pSnapshot && memcmp(pSnapshot, &pWal->hdr, sizeof(WalIndexHdr))!=0 ){
66427 ** a value equal to or smaller than pSnapshot->mxFrame, but pWal->hdr
66429 ** of the wal file. Verify that pSnapshot is still valid before
66430 ** continuing. Reasons why pSnapshot might no longer be valid:
66436 ** pSnapshot->mxFrame into the database file. Note that the
66442 assert( pInfo->aReadMark[pWal->readLock]<=pSnapshot->mxFrame );
66446 ** frames beyond pSnapshot->mxFrame. If either of these conditions are
66448 ** with *pSnapshot and set *pChanged as appropriate for opening the
66450 if( !memcmp(pSnapshot->aSalt, pWal->hdr.aSalt, sizeof(pWal->hdr.aSalt))
66451 && pSnapshot->mxFrame>=pInfo->nBackfillAttempted
66454 memcpy(&pWal->hdr, pSnapshot, sizeof(WalIndexHdr));
66476 assert( pSnapshot );
67462 /* Try to open on pSnapshot when the next read-transaction starts
67466 sqlite3_snapshot *pSnapshot
67468 pWal->pSnapshot = (WalIndexHdr*)pSnapshot;
67499 SQLITE_PRIVATE int sqlite3WalSnapshotCheck(Wal *pWal, sqlite3_snapshot *pSnapshot){
67503 WalIndexHdr *pNew = (WalIndexHdr*)pSnapshot;
178220 ** Open a read-transaction on the snapshot idendified by pSnapshot.
178225 sqlite3_snapshot *pSnapshot
178246 rc = sqlite3PagerSnapshotCheck(pPager, pSnapshot);
178256 rc = sqlite3PagerSnapshotOpen(pPager, pSnapshot);
178309 SQLITE_API void sqlite3_snapshot_free(sqlite3_snapshot *pSnapshot){
178310 sqlite3_free(pSnapshot);