Home
last modified time | relevance | path

Searched refs:freelist (Results 1 – 22 of 22) sorted by relevance

/sqlite-3.40.0/test/
H A Dcorrupt9.test15 # on corruption in the form of duplicate entries on the freelist.
38 # Return the offset to the first (trunk) page of the freelist. Return
39 # zero of the freelist is empty.
47 # This procedure looks at the first trunk page of the freelist and
62 # entries on the freelist.
89 # Corrupt the freelist by adding duplicate entries to the freelist.
H A Dpageropt.test118 # Pages written are page 1 (for the freelist pointer), the root page
120 # becomes the trunk of the freelist. Total 3.
130 # When pulling pages off of the freelist, there is no reason
147 # freelist we do not read the content of that page.
178 # There are now 11 pages on the freelist. Move them all into an
181 # of the freelist need to be read (3 pages). And only those three
194 # empty freelist. The first 10 of the 11 pages overflow chain have
197 # freelist need to be journalled and written back.
H A Dcorrupt4.test36 # Create a database with a freelist containing at least two pages.
52 # Verify that there are two pages on the freelist.
58 # Get the page number for the trunk of the freelist.
63 # Verify that the trunk of the freelist has exactly one
71 # Then try to add a new element to the freelist.
H A De_vacuum.test98 set freelist [expr {$nPage - $sz}]
103 incr freelist -2
105 do_execsql_test e_vacuum-1.1.$tn.3 {PRAGMA freelist_count} $freelist
H A Dcorrupt2.test565 # Test that PRAGMA integrity_check detects cases where the freelist-count
566 # header field is smaller than the actual number of pages on the freelist.
594 Main freelist: size is 3 but should be 2}}
606 Main freelist: size is 1 but should be 0}}
H A Dcorrupt5.test33 # Create a database with a freelist containing at least two pages.
H A Dioerr4.test52 # on the freelist.
H A DmallocC.test108 -- page from the freelist' code when in auto-vacuum mode (see the
H A Drecover.test169 recover_with_opts -ignore-freelist
H A Dincrvacuum2.test29 # pages on the freelist.
H A Dtrans2.test100 # many pages to the freelist.
H A Dexclusive2.test100 # does not modify the freelist, then reset the pager change-counter
/sqlite-3.40.0/ext/lsm1/
H A Dlsm_ckpt.c446 assert( pSnap->freelist.nEntry<=pDb->nMaxFreelist ); in ckptExportSnapshot()
448 int nFree = pSnap->freelist.nEntry; in ckptExportSnapshot()
451 FreelistEntry *p = &pSnap->freelist.aEntry[i]; in ckptExportSnapshot()
484 "ckptExportSnapshot(): id=%lld freelist: %d", iId, pSnap->freelist.nEntry in ckptExportSnapshot()
486 for(i=0; i<pSnap->freelist.nEntry; i++){ in ckptExportSnapshot()
489 pSnap->freelist.aEntry[i].iBlk, in ckptExportSnapshot()
490 pSnap->freelist.aEntry[i].iId in ckptExportSnapshot()
1016 pNew->freelist.aEntry = (FreelistEntry *)lsmMallocZeroRc( in lsmCheckpointDeserialize()
1022 FreelistEntry *p = &pNew->freelist.aEntry[j]; in lsmCheckpointDeserialize()
1027 pNew->freelist.nEntry = pNew->freelist.nAlloc = nFree; in lsmCheckpointDeserialize()
H A Dlsm_sorted.c4329 Freelist freelist; in sortedNewToplevel() local
4336 pDb->pFreelist = &freelist; in sortedNewToplevel()
4338 memset(&freelist, 0, sizeof(freelist)); in sortedNewToplevel()
4432 if( freelist.nEntry ){ in sortedNewToplevel()
4435 memcpy(p, &freelist, sizeof(freelist)); in sortedNewToplevel()
4436 freelist.aEntry = 0; in sortedNewToplevel()
4438 pDb->pWorker->freelist.nEntry = 0; in sortedNewToplevel()
4449 lsmFree(pDb->pEnv, freelist.aEntry); in sortedNewToplevel()
4963 Freelist freelist = {0, 0, 0}; in sortedWork() local
5010 pDb->pFreelist = &freelist; in sortedWork()
[all …]
H A Dlsm_shared.c106 p = db->bUseFreelist ? db->pFreelist : &db->pWorker->freelist; in freelistAppend()
693 ctx[0].pFreelist = &pDb->pWorker->freelist; in lsmWalkFreelist()
993 lsmFree(pEnv, p->freelist.aEntry); in lsmFreeSnapshot()
H A DlsmInt.h584 Freelist freelist; /* Free block list */ member
H A Dlsm_file.c3254 Freelist freelist = {0, 0, 0}; in lsmFsIntegrityCheck() local
3293 lsmFree(pDb->pEnv, freelist.aEntry); in lsmFsIntegrityCheck()
/sqlite-3.40.0/ext/repair/
H A Dsqlite3_checker.tcl102 --freelist Perform a freelist check
/sqlite-3.40.0/doc/
H A Dpager-invariants.txt13 (b) The page was a freelist leaf page at the start of the transaction.
47 all queries. Note in particular the content of freelist leaf
/sqlite-3.40.0/tool/
H A Dspaceanal.tcl612 statline {Pages on the freelist (per header)} $free_pgcnt2 $free_percent2
613 statline {Pages on the freelist (calculated)} $free_pgcnt $free_percent
721 Pages on the freelist
724 future use. The percentage at the right is the number of freelist pages
H A Dlemon.c1306 static struct config *freelist = 0; /* List of free configurations */ variable
1320 old->next = freelist; in deleteconfig()
1321 freelist = old; in deleteconfig()
/sqlite-3.40.0/src/
H A Dshell.c.in4519 " --ignore-freelist Ignore pages that appear to be on db freelist",
5929 { "freelist page count:", 36 },
7310 int bFreelist = 1; /* 0 if --ignore-freelist is specified */
7320 if( n<=17 && memcmp("-ignore-freelist", z, n)==0 ){