1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Remove unused code from the integrity_check logic. Ticket #545. (CVS 1153)

FossilOrigin-Name: ee51e205fb6ef412db6a46077e8bc1554aadcca1
This commit is contained in:
drh
2004-01-01 12:33:43 +00:00
parent cf64d8b820
commit 4ec2e9612f
3 changed files with 8 additions and 15 deletions

View File

@@ -9,7 +9,7 @@
** May you share freely, never taking more than you give.
**
*************************************************************************
** $Id: btree.c,v 1.97 2003/12/16 03:44:48 drh Exp $
** $Id: btree.c,v 1.98 2004/01/01 12:33:43 drh Exp $
**
** This file implements a external (disk-based) database using BTrees.
** For a detailed discussion of BTrees, refer to
@@ -3159,8 +3159,6 @@ struct IntegrityCk {
Pager *pPager; /* The associated pager. Also accessible by pBt->pPager */
int nPage; /* Number of pages in the database */
int *anRef; /* Number of times each page is referenced */
int nTreePage; /* Number of BTree pages */
int nByte; /* Number of bytes of data stored on BTree pages */
char *zErrMsg; /* An error message. NULL of no errors seen. */
};
@@ -3405,11 +3403,6 @@ static int checkTreePage(
}
#endif
/* Update freespace totals.
*/
pCheck->nTreePage++;
pCheck->nByte += USABLE_SPACE - pPage->nFree;
sqlitepager_unref(pPage);
return depth;
}