Lines Matching defs:sLoc

64433   WalHashLoc sLoc;                /* Hash table location */
64451 i = walHashGet(pWal, walFramePage(pWal->hdr.mxFrame), &sLoc);
64457 iLimit = pWal->hdr.mxFrame - sLoc.iZero;
64460 if( sLoc.aHash[i]>iLimit ){
64461 sLoc.aHash[i] = 0;
64468 nByte = (int)((char *)sLoc.aHash - (char *)&sLoc.aPgno[iLimit]);
64470 memset((void *)&sLoc.aPgno[iLimit], 0, nByte);
64480 for(iKey=walHash(sLoc.aPgno[j]);sLoc.aHash[iKey];iKey=walNextHash(iKey)){
64481 if( sLoc.aHash[iKey]==j+1 ) break;
64483 assert( sLoc.aHash[iKey]==j+1 );
64496 WalHashLoc sLoc; /* Wal-index hash table location */
64498 rc = walHashGet(pWal, walFramePage(iFrame), &sLoc);
64508 idx = iFrame - sLoc.iZero;
64515 int nByte = (int)((u8*)&sLoc.aHash[HASHTABLE_NSLOT] - (u8*)sLoc.aPgno);
64517 memset((void*)sLoc.aPgno, 0, nByte);
64526 if( sLoc.aPgno[idx-1] ){
64528 assert( !sLoc.aPgno[idx-1] );
64533 for(iKey=walHash(iPage); sLoc.aHash[iKey]; iKey=walNextHash(iKey)){
64536 sLoc.aPgno[idx-1] = iPage;
64537 AtomicStore(&sLoc.aHash[iKey], (ht_slot)idx);
64546 for(i=0; i<HASHTABLE_NSLOT; i++){ if( sLoc.aHash[i] ) nEntry++; }
64558 for(iKey=walHash(sLoc.aPgno[i]);
64559 sLoc.aHash[iKey];
64561 if( sLoc.aHash[iKey]==i+1 ) break;
64563 assert( sLoc.aHash[iKey]==i+1 );
65179 WalHashLoc sLoc;
65181 rc = walHashGet(pWal, i, &sLoc);
65188 nEntry = (int)(iLast - sLoc.iZero);
65190 nEntry = (int)((u32*)sLoc.aHash - (u32*)sLoc.aPgno);
65192 aIndex = &((ht_slot *)&p->aSegment[p->nSegment])[sLoc.iZero];
65193 sLoc.iZero++;
65198 walMergesort((u32 *)sLoc.aPgno, aTmp, aIndex, &nEntry);
65199 p->aSegment[i].iZero = sLoc.iZero;
65202 p->aSegment[i].aPgno = (u32 *)sLoc.aPgno;
66328 WalHashLoc sLoc; /* Hash table location */
66333 rc = walHashGet(pWal, walFramePage(i), &sLoc);
66335 assert( i - sLoc.iZero - 1 >=0 );
66336 pgno = sLoc.aPgno[i-sLoc.iZero-1];
66555 WalHashLoc sLoc; /* Hash table location */
66561 rc = walHashGet(pWal, iHash, &sLoc);
66567 while( (iH = AtomicLoad(&sLoc.aHash[iKey]))!=0 ){
66568 u32 iFrame = iH + sLoc.iZero;
66569 if( iFrame<=iLast && iFrame>=pWal->minFrame && sLoc.aPgno[iH-1]==pgno ){