Lines Matching refs:nRec

38181   int nRec;                   /* Pages journalled since last j-header written */
38900 ** Write the nRec Field - the number of page records that follow this
38906 ** A faster alternative is to write 0xFFFFFFFF to the nRec field. When
38996 u32 *pNRec, /* OUT: Value read from the nRec field */
39030 /* Read the first three 32-bit fields of the journal header: The nRec
39495 pPager->nRec = 0;
40099 ** Call the value from the second bullet "nRec". nRec is the number of
40101 ** value of nRec from the size of the journal file. But if a power
40105 ** the value of nRec computed from the file size would be too large. For
40106 ** that reason, we always use the nRec value in the header.
40108 ** If the nRec value is 0xffffffff it means that nRec should be computed
40133 u32 nRec; /* Number of Records in the journal */
40183 rc = readJournalHdr(pPager, isHot, szJ, &nRec, &mxPg);
40191 /* If nRec is 0xffffffff, then this journal was created by a process
40194 ** the value of nRec based on this assumption.
40196 if( nRec==0xffffffff ){
40198 nRec = (int)((szJ - JOURNAL_HDR_SZ(pPager))/JOURNAL_PG_SZ(pPager));
40201 /* If nRec is 0 and this rollback is of a transaction created by this
40208 ** When rolling back a hot journal, nRec==0 always means that the next
40210 ** when doing a ROLLBACK and the nRec==0 chunk is the last chunk in
40215 if( nRec==0 && !isHot &&
40217 nRec = (int)((szJ - pPager->journalOff) / JOURNAL_PG_SZ(pPager));
40234 for(u=0; u<nRec; u++){
40849 ** database (with some additional information - the nRec field
41356 ** then the nRec field of the most recently written journal header
41369 ** <update nRec field>
41403 ** occurs after nRec is updated but before this connection writes
41424 put32bits(&zHeader[sizeof(aJournalMagic)], pPager->nRec);
41436 /* Write the nRec value into the journal file header. If in
41438 ** all data has really hit the disk before nRec is updated to mark
41443 ** for garbage data to be appended to the file, the nRec field
41470 pPager->nRec = 0;
42714 pPager->nRec = 0;
42916 pPager->nRec++;
43478 ** header with the nRec field set to 0. If such a journal is used as
70437 int nRec = 0; /* Size of record in bytes */
70454 iOff = getVarint32(pIter->aAlloc, nRec);
70455 if( (iOff+nRec)>nRead ){
70457 if( (iOff+nRec)>pIter->nAlloc ){
70459 while( (iOff+nRec)>nNew ) nNew = nNew*2;
70465 nRead2 = iOff + nRec - nRead;
70472 assert( rc!=SQLITE_OK || nRec>0 );
70473 pIter->iReadOff += iOff+nRec;
70474 pIter->nKey = nRec;