Lines Matching refs:sLoc
60302 WalHashLoc sLoc; /* Hash table location */
60321 rc = walHashGet(pWal, walFramePage(pWal->hdr.mxFrame), &sLoc);
60327 iLimit = pWal->hdr.mxFrame - sLoc.iZero;
60330 if( sLoc.aHash[i]>iLimit ){
60331 sLoc.aHash[i] = 0;
60338 nByte = (int)((char *)sLoc.aHash - (char *)&sLoc.aPgno[iLimit+1]);
60339 memset((void *)&sLoc.aPgno[iLimit+1], 0, nByte);
60349 for(iKey=walHash(sLoc.aPgno[j]);sLoc.aHash[iKey];iKey=walNextHash(iKey)){
60350 if( sLoc.aHash[iKey]==j ) break;
60352 assert( sLoc.aHash[iKey]==j );
60365 WalHashLoc sLoc; /* Wal-index hash table location */
60367 rc = walHashGet(pWal, walFramePage(iFrame), &sLoc);
60377 idx = iFrame - sLoc.iZero;
60384 int nByte = (int)((u8 *)&sLoc.aHash[HASHTABLE_NSLOT]
60385 - (u8 *)&sLoc.aPgno[1]);
60386 memset((void*)&sLoc.aPgno[1], 0, nByte);
60395 if( sLoc.aPgno[idx] ){
60397 assert( !sLoc.aPgno[idx] );
60402 for(iKey=walHash(iPage); sLoc.aHash[iKey]; iKey=walNextHash(iKey)){
60405 sLoc.aPgno[idx] = iPage;
60406 sLoc.aHash[iKey] = (ht_slot)idx;
60415 for(i=0; i<HASHTABLE_NSLOT; i++){ if( sLoc.aHash[i] ) nEntry++; }
60427 for(iKey=walHash(sLoc.aPgno[i]);
60428 sLoc.aHash[iKey];
60430 if( sLoc.aHash[iKey]==i ) break;
60432 assert( sLoc.aHash[iKey]==i );
60970 WalHashLoc sLoc;
60972 rc = walHashGet(pWal, i, &sLoc);
60978 sLoc.aPgno++;
60980 nEntry = (int)(iLast - sLoc.iZero);
60982 nEntry = (int)((u32*)sLoc.aHash - (u32*)sLoc.aPgno);
60984 aIndex = &((ht_slot *)&p->aSegment[p->nSegment])[sLoc.iZero];
60985 sLoc.iZero++;
60990 walMergesort((u32 *)sLoc.aPgno, aTmp, aIndex, &nEntry);
60991 p->aSegment[i].iZero = sLoc.iZero;
60994 p->aSegment[i].aPgno = (u32 *)sLoc.aPgno;
62102 WalHashLoc sLoc; /* Hash table location */
62107 rc = walHashGet(pWal, walFramePage(i), &sLoc);
62109 pgno = sLoc.aPgno[i-sLoc.iZero];
62328 WalHashLoc sLoc; /* Hash table location */
62334 rc = walHashGet(pWal, iHash, &sLoc);
62340 while( (iH = AtomicLoad(&sLoc.aHash[iKey]))!=0 ){
62341 u32 iFrame = iH + sLoc.iZero;
62342 if( iFrame<=iLast && iFrame>=pWal->minFrame && sLoc.aPgno[iH]==pgno ){