diff options
author | drh <drh@noemail.net> | 2019-02-19 16:42:54 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-02-19 16:42:54 +0000 |
commit | 12fe9a0d2512ebbbcc9c492af187ff76404b913e (patch) | |
tree | 899a33b9894742cdc451e57c25bf830afa3bd5ec /src | |
parent | 3cbd2b7245ad0b262d5e0810ac3200e9797db1eb (diff) | |
download | sqlite-12fe9a0d2512ebbbcc9c492af187ff76404b913e.tar.gz sqlite-12fe9a0d2512ebbbcc9c492af187ff76404b913e.zip |
Fix an assert() that might not be true if the database file is corrupt.
FossilOrigin-Name: f2d400db4dbfb05e2540178ed3662f97f8c57a95f8129886c7081c35e53adf0d
Diffstat (limited to 'src')
-rw-r--r-- | src/btree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c index 0a8e6a99e..aa2c84999 100644 --- a/src/btree.c +++ b/src/btree.c @@ -8261,7 +8261,7 @@ static int balance_deeper(MemPage *pRoot, MemPage **ppChild){ } assert( sqlite3PagerIswriteable(pChild->pDbPage) ); assert( sqlite3PagerIswriteable(pRoot->pDbPage) ); - assert( pChild->nCell==pRoot->nCell ); + assert( pChild->nCell==pRoot->nCell || CORRUPT_DB ); TRACE(("BALANCE: copy root %d into %d\n", pRoot->pgno, pChild->pgno)); |