Home
last modified time | relevance | path

Searched refs:szSector (Results 1 – 3 of 3) sorted by relevance

/sqlite-3.40.0/ext/lsm1/
H A Dlsm_log.c227 int szSector; /* Sector size for this transaction */ member
299 return (iOff / pLog->szSector) * pLog->szSector; in firstByteOnSector()
302 return firstByteOnSector(pLog, iOff) + pLog->szSector - 1; in lastByteOnSector()
411 pNew->szSector = lsmFsSectorSize(pDb->pFS); in lsmLogBegin()
412 assert( pNew->szSector>0 ); in lsmLogBegin()
414 pNew->szSector = 1; in lsmLogBegin()
607 if( eType==LSM_LOG_COMMIT && pLog->szSector>1 ) nReq += pLog->szSector + 17; in logFlush()
614 if( eType==LSM_LOG_COMMIT && pLog->szSector>1 ){ in logFlush()
618 nPad = ((pLog->iOff + pLog->buf.n + 9) % pLog->szSector); in logFlush()
619 if( nPad ) nPad = pLog->szSector - nPad; in logFlush()
H A Dlsm_file.c225 int szSector; /* Database file sector size */ member
672 pFS->szSector = lsmEnvSectorSize(pFS->pEnv, pFS->fdDb); in lsmFsOpen()
1447 if( pFS->nBuffer<(pFS->szSector+6) ){ in fsAllocateBuffer()
1448 pFS->nBuffer = pFS->szSector+6; in fsAllocateBuffer()
2817 iLast2 = (1 + iLast/pFS->szSector) * pFS->szSector - 1; in lsmFsSortedPadding()
2843 || ((pSeg->iLastPg + 1) % pFS->szSector)==0 in lsmFsSortedPadding()
2937 return pFS->szSector; in lsmFsSectorSize()
/sqlite-3.40.0/ext/lsm1/lsm-test/
H A Dlsmtest_tdb3.c112 int szSector; /* Assumed size of disk sectors (512B) */ member
207 iFirst = (int)(iOff / pDb->szSector); in testEnvWrite()
208 iLast = (int)((iOff + nData - 1) / pDb->szSector); in testEnvWrite()
224 u8 *aOld = (u8 *)testMalloc(pDb->szSector); in testEnvWrite()
226 p->pReal, (lsm_i64)iSector*pDb->szSector, aOld, pDb->szSector in testEnvWrite()
408 testPrngArray(iSeed++, (u32 *)aOld, pDb->szSector/4); in doSystemCrash()
413 pFile, (lsm_i64)i * pDb->szSector, aOld, pDb->szSector in doSystemCrash()
977 pDb->szSector = 256; in testLsmOpen()