aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-09-30 14:19:08 +0000
committerdrh <drh@noemail.net>2015-09-30 14:19:08 +0000
commit9b5351d439f6a6ee07e1ea244d693eb2a96cd821 (patch)
treed206c112ed722eefa704d1533aabe41bc5b543da /src
parente755e10a782cdc94801e8d13e5c3ebe457b728cb (diff)
downloadsqlite-9b5351d439f6a6ee07e1ea244d693eb2a96cd821.tar.gz
sqlite-9b5351d439f6a6ee07e1ea244d693eb2a96cd821.zip
Fix an assert() in btree.c that is only true for non-corrupt databases.
FossilOrigin-Name: 29f7227ff127202c53fe7c3b6558b3c101b0a7bc
Diffstat (limited to 'src')
-rw-r--r--src/btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c
index bf777aa96..1eae0ac5d 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -7624,7 +7624,7 @@ static int balance_nonroot(
** by smaller than the child due to the database header, and so all the
** free space needs to be up front.
*/
- assert( nNew==1 );
+ assert( nNew==1 || CORRUPT_DB );
rc = defragmentPage(apNew[0]);
testcase( rc!=SQLITE_OK );
assert( apNew[0]->nFree ==