Lines Matching refs:WalIndexHdr

303 typedef struct WalIndexHdr WalIndexHdr;  typedef
321 struct WalIndexHdr { struct
473 #define WALINDEX_LOCK_OFFSET (sizeof(WalIndexHdr)*2+offsetof(WalCkptInfo,aLock))
474 #define WALINDEX_HDR_SIZE (sizeof(WalIndexHdr)*2+sizeof(WalCkptInfo))
526 WalIndexHdr hdr; /* Wal-index header for current transaction */
535 WalIndexHdr *pSnapshot; /* Start transaction here if not NULL */
696 return (volatile WalCkptInfo*)&(pWal->apWiData[0][sizeof(WalIndexHdr)/2]); in walCkptInfo()
702 static volatile WalIndexHdr *walIndexHdr(Wal *pWal){ in walIndexHdr()
704 return (volatile WalIndexHdr*)pWal->apWiData[0]; in walIndexHdr()
796 volatile WalIndexHdr *aHdr = walIndexHdr(pWal); in walIndexWriteHdr()
797 const int nCksum = offsetof(WalIndexHdr, aCksum); in walIndexWriteHdr()
804 memcpy((void*)&aHdr[1], (const void*)&pWal->hdr, sizeof(WalIndexHdr)); in walIndexWriteHdr()
806 memcpy((void*)&aHdr[0], (const void*)&pWal->hdr, sizeof(WalIndexHdr)); in walIndexWriteHdr()
1246 memset(&pWal->hdr, 0, sizeof(WalIndexHdr)); in walIndexRecover()
1497 assert( 48 == sizeof(WalIndexHdr) ); in sqlite3WalOpen()
2321 WalIndexHdr h1, h2; /* Two copies of the header content */ in walIndexTryHdr()
2322 WalIndexHdr volatile *aHdr; /* Header in shared memory */ in walIndexTryHdr()
2359 if( memcmp(&pWal->hdr, &h1, sizeof(WalIndexHdr)) ){ in walIndexTryHdr()
2361 memcpy(&pWal->hdr, &h1, sizeof(WalIndexHdr)); in walIndexTryHdr()
2571 memcpy(&pWal->hdr, (void*)walIndexHdr(pWal), sizeof(WalIndexHdr)); in walBeginShmUnreliable()
2802 if( memcmp((void *)walIndexHdr(pWal), &pWal->hdr, sizeof(WalIndexHdr)) ){ in walTryBeginRead()
2909 || memcmp((void *)walIndexHdr(pWal), &pWal->hdr, sizeof(WalIndexHdr)) in walTryBeginRead()
3016 WalIndexHdr *pSnapshot = pWal->pSnapshot; in sqlite3WalBeginReadTransaction()
3023 if( memcmp(pSnapshot, &pWal->hdr, sizeof(WalIndexHdr))!=0 ){ in sqlite3WalBeginReadTransaction()
3056 if( pSnapshot && memcmp(pSnapshot, &pWal->hdr, sizeof(WalIndexHdr))!=0 ){ in sqlite3WalBeginReadTransaction()
3085 memcpy(&pWal->hdr, pSnapshot, sizeof(WalIndexHdr)); in sqlite3WalBeginReadTransaction()
3288 assert( !memcmp(&pWal->hdr,(void *)walIndexHdr(pWal),sizeof(WalIndexHdr)) ); in sqlite3WalBeginWriteTransaction()
3315 if( memcmp(&pWal->hdr, (void *)walIndexHdr(pWal), sizeof(WalIndexHdr))!=0 ){ in sqlite3WalBeginWriteTransaction()
3359 memcpy(&pWal->hdr, (void *)walIndexHdr(pWal), sizeof(WalIndexHdr)); in sqlite3WalUndo()
3621 WalIndexHdr *pLive; /* Pointer to shared header */ in sqlite3WalFrames()
3637 pLive = (WalIndexHdr*)walIndexHdr(pWal); in sqlite3WalFrames()
3638 if( memcmp(&pWal->hdr, (void *)pLive, sizeof(WalIndexHdr))!=0 ){ in sqlite3WalFrames()
3943 memset(&pWal->hdr, 0, sizeof(WalIndexHdr)); in sqlite3WalCheckpoint()
4053 WalIndexHdr *pRet; in sqlite3WalSnapshotGet()
4062 pRet = (WalIndexHdr*)sqlite3_malloc(sizeof(WalIndexHdr)); in sqlite3WalSnapshotGet()
4066 memcpy(pRet, &pWal->hdr, sizeof(WalIndexHdr)); in sqlite3WalSnapshotGet()
4079 pWal->pSnapshot = (WalIndexHdr*)pSnapshot; in sqlite3WalSnapshotOpen()
4087 WalIndexHdr *pHdr1 = (WalIndexHdr*)p1; in sqlite3_snapshot_cmp()
4088 WalIndexHdr *pHdr2 = (WalIndexHdr*)p2; in sqlite3_snapshot_cmp()
4114 WalIndexHdr *pNew = (WalIndexHdr*)pSnapshot; in sqlite3WalSnapshotCheck()