Lines Matching refs:sLoc

67112   WalHashLoc sLoc;                /* Hash table location */  local
67130 i = walHashGet(pWal, walFramePage(pWal->hdr.mxFrame), &sLoc);
67136 iLimit = pWal->hdr.mxFrame - sLoc.iZero;
67139 if( sLoc.aHash[i]>iLimit ){
67140 sLoc.aHash[i] = 0;
67147 nByte = (int)((char *)sLoc.aHash - (char *)&sLoc.aPgno[iLimit]);
67149 memset((void *)&sLoc.aPgno[iLimit], 0, nByte);
67159 for(iKey=walHash(sLoc.aPgno[j]);sLoc.aHash[iKey];iKey=walNextHash(iKey)){
67160 if( sLoc.aHash[iKey]==j+1 ) break;
67162 assert( sLoc.aHash[iKey]==j+1 );
67175 WalHashLoc sLoc; /* Wal-index hash table location */ local
67177 rc = walHashGet(pWal, walFramePage(iFrame), &sLoc);
67187 idx = iFrame - sLoc.iZero;
67194 int nByte = (int)((u8*)&sLoc.aHash[HASHTABLE_NSLOT] - (u8*)sLoc.aPgno);
67196 memset((void*)sLoc.aPgno, 0, nByte);
67205 if( sLoc.aPgno[idx-1] ){
67207 assert( !sLoc.aPgno[idx-1] );
67212 for(iKey=walHash(iPage); sLoc.aHash[iKey]; iKey=walNextHash(iKey)){
67215 sLoc.aPgno[idx-1] = iPage;
67216 AtomicStore(&sLoc.aHash[iKey], (ht_slot)idx);
67225 for(i=0; i<HASHTABLE_NSLOT; i++){ if( sLoc.aHash[i] ) nEntry++; }
67237 for(iKey=walHash(sLoc.aPgno[i]);
67238 sLoc.aHash[iKey];
67240 if( sLoc.aHash[iKey]==i+1 ) break;
67242 assert( sLoc.aHash[iKey]==i+1 );
67856 WalHashLoc sLoc; local
67858 rc = walHashGet(pWal, i, &sLoc);
67865 nEntry = (int)(iLast - sLoc.iZero);
67867 nEntry = (int)((u32*)sLoc.aHash - (u32*)sLoc.aPgno);
67869 aIndex = &((ht_slot *)&p->aSegment[p->nSegment])[sLoc.iZero];
67870 sLoc.iZero++;
67875 walMergesort((u32 *)sLoc.aPgno, aTmp, aIndex, &nEntry);
67876 p->aSegment[i].iZero = sLoc.iZero;
67879 p->aSegment[i].aPgno = (u32 *)sLoc.aPgno;
69150 WalHashLoc sLoc; /* Hash table location */ local
69155 rc = walHashGet(pWal, walFramePage(i), &sLoc);
69157 assert( i - sLoc.iZero - 1 >=0 );
69158 pgno = sLoc.aPgno[i-sLoc.iZero-1];
69434 WalHashLoc sLoc; /* Hash table location */ local
69440 rc = walHashGet(pWal, iHash, &sLoc);
69447 while( (iH = AtomicLoad(&sLoc.aHash[iKey]))!=0 ){
69448 u32 iFrame = iH + sLoc.iZero;
69449 if( iFrame<=iLast && iFrame>=pWal->minFrame && sLoc.aPgno[iH-1]==pgno ){