Lines Matching refs:WalIndexHdr
285 typedef struct WalIndexHdr WalIndexHdr;
300 struct WalIndexHdr {
316 ** following the second copy of the WalIndexHdr. This object stores
322 ** WalIndexHdr.mxFrame. nBackfill can only be increased by threads
375 #define WALINDEX_LOCK_OFFSET (sizeof(WalIndexHdr)*2 + sizeof(WalCkptInfo))
423 WalIndexHdr hdr; /* Wal-index header for current transaction */
544 return (volatile WalCkptInfo*)&(pWal->apWiData[0][sizeof(WalIndexHdr)/2]);
548 ** Return a pointer to the WalIndexHdr structure in the wal-index.
550 static volatile WalIndexHdr *walIndexHdr(Wal *pWal){
552 return (volatile WalIndexHdr*)pWal->apWiData[0];
626 volatile WalIndexHdr *aHdr = walIndexHdr(pWal);
627 const int nCksum = offsetof(WalIndexHdr, aCksum);
633 memcpy((void *)&aHdr[1], (void *)&pWal->hdr, sizeof(WalIndexHdr));
635 memcpy((void *)&aHdr[0], (void *)&pWal->hdr, sizeof(WalIndexHdr));
1067 memset(&pWal->hdr, 0, sizeof(WalIndexHdr));
1828 WalIndexHdr h1, h2; /* Two copies of the header content */
1829 WalIndexHdr volatile *aHdr; /* Header in shared memory */
1860 if( memcmp(&pWal->hdr, &h1, sizeof(WalIndexHdr)) ){
1862 memcpy(&pWal->hdr, &h1, sizeof(WalIndexHdr));
2070 if( memcmp((void *)walIndexHdr(pWal), &pWal->hdr, sizeof(WalIndexHdr)) ){
2155 || memcmp((void *)walIndexHdr(pWal), &pWal->hdr, sizeof(WalIndexHdr))
2376 if( memcmp(&pWal->hdr, (void *)walIndexHdr(pWal), sizeof(WalIndexHdr))!=0 ){
2418 memcpy(&pWal->hdr, (void *)walIndexHdr(pWal), sizeof(WalIndexHdr));
2806 memset(&pWal->hdr, 0, sizeof(WalIndexHdr));