1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Change integrity_check to analyze the cells of a page in reverse order, as

this will tend to insert the cells into the analysis heap in increasing order
by address, which is the most efficient way to load a min-heap.

FossilOrigin-Name: 59ad912c4c1f858e04d27b1b8f25581a5f6e5daf
This commit is contained in:
drh
2015-07-01 01:31:14 +00:00
parent 647ca46fc5
commit 88266dc17a
3 changed files with 9 additions and 9 deletions

View File

@@ -9104,7 +9104,7 @@ static int checkTreePage(
cellStart = hdr + 12 - 4*pPage->leaf;
/* EVIDENCE-OF: R-02776-14802 The cell pointer array consists of K 2-byte
** integer offsets to the cell contents. */
for(i=0; i<nCell; i++){
for(i=nCell-1; i>=0; i--){
int pc = get2byteAligned(&data[cellStart+i*2]);
u32 size = 65536;
if( pc<=usableSize-4 ){