Home | History | Annotate | Download | only in dist

Lines Matching refs:WalIndexHdr

55901 typedef struct WalIndexHdr WalIndexHdr;
55919 struct WalIndexHdr {
55935 ** following the second copy of the WalIndexHdr. This object stores
55941 ** WalIndexHdr.mxFrame. nBackfill can only be increased by threads
55951 ** WalIndexHdr.mxFrame must never be less than nBackfillAttempted.
56007 #define WALINDEX_LOCK_OFFSET (sizeof(WalIndexHdr)*2+offsetof(WalCkptInfo,aLock))
56008 #define WALINDEX_HDR_SIZE (sizeof(WalIndexHdr)*2+sizeof(WalCkptInfo))
56060 WalIndexHdr hdr; /* Wal-index header for current transaction */
56069 WalIndexHdr *pSnapshot; /* Start transaction here if not NULL */
56206 return (volatile WalCkptInfo*)&(pWal->apWiData[0][sizeof(WalIndexHdr)/2]);
56210 ** Return a pointer to the WalIndexHdr structure in the wal-index.
56212 static volatile WalIndexHdr *walIndexHdr(Wal *pWal){
56214 return (volatile WalIndexHdr*)pWal->apWiData[0];
56288 volatile WalIndexHdr *aHdr = walIndexHdr(pWal);
56289 const int nCksum = offsetof(WalIndexHdr, aCksum);
56295 memcpy((void*)&aHdr[1], (const void*)&pWal->hdr, sizeof(WalIndexHdr));
56297 memcpy((void*)&aHdr[0], (const void*)&pWal->hdr, sizeof(WalIndexHdr));
56738 memset(&pWal->hdr, 0, sizeof(WalIndexHdr));
57468 if( mxSafeFrame==walIndexHdr(pWal)->mxFrame ){
57638 WalIndexHdr h1, h2; /* Two copies of the header content */
57639 WalIndexHdr volatile *aHdr; /* Header in shared memory */
57654 aHdr = walIndexHdr(pWal);
57670 if( memcmp(&pWal->hdr, &h1, sizeof(WalIndexHdr)) ){
57672 memcpy(&pWal->hdr, &h1, sizeof(WalIndexHdr));
57878 memcpy(&pWal->hdr, (void*)walIndexHdr(pWal), sizeof(WalIndexHdr));
58107 if( memcmp((void *)walIndexHdr(pWal), &pWal->hdr, sizeof(WalIndexHdr)) ){
58213 || memcmp((void *)walIndexHdr(pWal), &pWal->hdr, sizeof(WalIndexHdr))
58322 WalIndexHdr *pSnapshot = pWal->pSnapshot;
58323 if( pSnapshot && memcmp(pSnapshot, &pWal->hdr, sizeof(WalIndexHdr))!=0 ){
58338 if( pSnapshot && memcmp(pSnapshot, &pWal->hdr, sizeof(WalIndexHdr))!=0 ){
58382 memcpy(&pWal->hdr, pSnapshot, sizeof(WalIndexHdr));
58590 if( memcmp(&pWal->hdr, (void *)walIndexHdr(pWal), sizeof(WalIndexHdr))!=0 ){
58634 memcpy(&pWal->hdr, (void *)walIndexHdr(pWal), sizeof(WalIndexHdr));
58900 WalIndexHdr *pLive; /* Pointer to shared header */
58916 pLive = (WalIndexHdr*)walIndexHdr(pWal);
58917 if( memcmp(&pWal->hdr, (void *)pLive, sizeof(WalIndexHdr))!=0 ){
59217 memset(&pWal->hdr, 0, sizeof(WalIndexHdr));
59319 WalIndexHdr *pRet;
59328 pRet = (WalIndexHdr*)sqlite3_malloc(sizeof(WalIndexHdr));
59332 memcpy(pRet, &pWal->hdr, sizeof(WalIndexHdr));
59342 pWal->pSnapshot = (WalIndexHdr*)pSnapshot;
59350 WalIndexHdr *pHdr1 = (WalIndexHdr*)p1;
59351 WalIndexHdr *pHdr2 = (WalIndexHdr*)p2;