Lines Matching refs:sLoc
61446 WalHashLoc sLoc; /* Hash table location */
61464 i = walHashGet(pWal, walFramePage(pWal->hdr.mxFrame), &sLoc);
61470 iLimit = pWal->hdr.mxFrame - sLoc.iZero;
61473 if( sLoc.aHash[i]>iLimit ){
61474 sLoc.aHash[i] = 0;
61481 nByte = (int)((char *)sLoc.aHash - (char *)&sLoc.aPgno[iLimit]);
61483 memset((void *)&sLoc.aPgno[iLimit], 0, nByte);
61493 for(iKey=walHash(sLoc.aPgno[j]);sLoc.aHash[iKey];iKey=walNextHash(iKey)){
61494 if( sLoc.aHash[iKey]==j+1 ) break;
61496 assert( sLoc.aHash[iKey]==j+1 );
61509 WalHashLoc sLoc; /* Wal-index hash table location */
61511 rc = walHashGet(pWal, walFramePage(iFrame), &sLoc);
61521 idx = iFrame - sLoc.iZero;
61528 int nByte = (int)((u8*)&sLoc.aHash[HASHTABLE_NSLOT] - (u8*)sLoc.aPgno);
61530 memset((void*)sLoc.aPgno, 0, nByte);
61539 if( sLoc.aPgno[idx-1] ){
61541 assert( !sLoc.aPgno[idx-1] );
61546 for(iKey=walHash(iPage); sLoc.aHash[iKey]; iKey=walNextHash(iKey)){
61549 sLoc.aPgno[idx-1] = iPage;
61550 AtomicStore(&sLoc.aHash[iKey], (ht_slot)idx);
61559 for(i=0; i<HASHTABLE_NSLOT; i++){ if( sLoc.aHash[i] ) nEntry++; }
61571 for(iKey=walHash(sLoc.aPgno[i]);
61572 sLoc.aHash[iKey];
61574 if( sLoc.aHash[iKey]==i+1 ) break;
61576 assert( sLoc.aHash[iKey]==i+1 );
62192 WalHashLoc sLoc;
62194 rc = walHashGet(pWal, i, &sLoc);
62201 nEntry = (int)(iLast - sLoc.iZero);
62203 nEntry = (int)((u32*)sLoc.aHash - (u32*)sLoc.aPgno);
62205 aIndex = &((ht_slot *)&p->aSegment[p->nSegment])[sLoc.iZero];
62206 sLoc.iZero++;
62211 walMergesort((u32 *)sLoc.aPgno, aTmp, aIndex, &nEntry);
62212 p->aSegment[i].iZero = sLoc.iZero;
62215 p->aSegment[i].aPgno = (u32 *)sLoc.aPgno;
63331 WalHashLoc sLoc; /* Hash table location */
63336 rc = walHashGet(pWal, walFramePage(i), &sLoc);
63338 assert( i - sLoc.iZero - 1 >=0 );
63339 pgno = sLoc.aPgno[i-sLoc.iZero-1];
63558 WalHashLoc sLoc; /* Hash table location */
63564 rc = walHashGet(pWal, iHash, &sLoc);
63570 while( (iH = AtomicLoad(&sLoc.aHash[iKey]))!=0 ){
63571 u32 iFrame = iH + sLoc.iZero;
63572 if( iFrame<=iLast && iFrame>=pWal->minFrame && sLoc.aPgno[iH-1]==pgno ){