SQLite4
Check-in [b55b092602]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1 Hash:b55b092602162474b8843807863362d6f2f97c82
Date: 2012-11-23 16:41:01
User: dan
Comment:Fix a problem in compressed database mode causing pages to be incorrectly marked as dirty.
Tags And Properties
Changes
hide diffs unified diffs patch

Changes to src/lsm_file.c

1959 /* Now that it has a page number, insert the page into the hash table */ 1959 /* Now that it has a page number, insert the page into the hash table */ 1960 iHash = fsHashKey(pFS->nHash, pPg->iPg); 1960 iHash = fsHashKey(pFS->nHash, pPg->iPg); 1961 pPg->pHashNext = pFS->apHash[iHash]; 1961 pPg->pHashNext = pFS->apHash[iHash]; 1962 pFS->apHash[iHash] = pPg; 1962 pFS->apHash[iHash] = pPg; 1963 1963 1964 pPg->pSeg->nSize += (sizeof(aSz) * 2) + pPg->nCompress; 1964 pPg->pSeg->nSize += (sizeof(aSz) * 2) + pPg->nCompress; 1965 1965 > 1966 pPg->flags &= ~PAGE_DIRTY; > 1967 pFS->nWrite++; 1966 }else{ 1968 }else{ 1967 1969 1968 if( pPg->iPg==0 ){ 1970 if( pPg->iPg==0 ){ 1969 /* No page number has been assigned yet. This occurs with pages used 1971 /* No page number has been assigned yet. This occurs with pages used 1970 ** in the b-tree hierarchy. They were not assigned page numbers when 1972 ** in the b-tree hierarchy. They were not assigned page numbers when 1971 ** they were created as doing so would cause this call to 1973 ** they were created as doing so would cause this call to 1972 ** lsmFsPagePersist() to write an out-of-order page. Instead a page 1974 ** lsmFsPagePersist() to write an out-of-order page. Instead a page