mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Remove a condition that is always true from btree.c. (CVS 6798)
FossilOrigin-Name: 3ec8b37a89fdb2436d312439715414fae2cd20a8
This commit is contained in:
14
manifest
14
manifest
@@ -1,5 +1,5 @@
|
|||||||
C Make\ssure\ssqlite3BtreeCreateTable()\sreturns\san\serror\scode\sif\sthe\slargest\nrootpage\sfield\sis\sinvalid\sin\sauto_vacuum\smode.\s\sUpdate\sfile-format\scomments\nto\sdescribe\sall\sof\sthe\s"meta"\svalues.\s(CVS\s6797)
|
C Remove\sa\scondition\sthat\sis\salways\strue\sfrom\sbtree.c.\s(CVS\s6798)
|
||||||
D 2009-06-22T12:05:10
|
D 2009-06-22T18:03:52
|
||||||
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
|
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
|
||||||
F Makefile.in 8b8fb7823264331210cddf103831816c286ba446
|
F Makefile.in 8b8fb7823264331210cddf103831816c286ba446
|
||||||
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
|
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
|
||||||
@@ -106,7 +106,7 @@ F src/auth.c 98db07c2088455797678eb1031f42d4d94d18a71
|
|||||||
F src/backup.c ff50af53184a5fd7bdee4d620b5dabef74717c79
|
F src/backup.c ff50af53184a5fd7bdee4d620b5dabef74717c79
|
||||||
F src/bitvec.c 0ef0651714728055d43de7a4cdd95e703fac0119
|
F src/bitvec.c 0ef0651714728055d43de7a4cdd95e703fac0119
|
||||||
F src/btmutex.c 9b899c0d8df3bd68f527b0afe03088321b696d3c
|
F src/btmutex.c 9b899c0d8df3bd68f527b0afe03088321b696d3c
|
||||||
F src/btree.c e24cdcd3280a63ce06b169a9467f554db325257d
|
F src/btree.c 4796c27b387cd027d8f65f73132bba977829af64
|
||||||
F src/btree.h f70b694e8c163227369a66863b01fbff9009f323
|
F src/btree.h f70b694e8c163227369a66863b01fbff9009f323
|
||||||
F src/btreeInt.h 7267e965e34314aa2bddbdde268b31e1034eda9c
|
F src/btreeInt.h 7267e965e34314aa2bddbdde268b31e1034eda9c
|
||||||
F src/build.c e98868af6a04c8d7191c39fd05c69da34a8d9c68
|
F src/build.c e98868af6a04c8d7191c39fd05c69da34a8d9c68
|
||||||
@@ -736,7 +736,7 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
|
|||||||
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
|
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
|
||||||
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
|
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
|
||||||
F tool/vdbe-compress.tcl 672f81d693a03f80f5ae60bfefacd8a349e76746
|
F tool/vdbe-compress.tcl 672f81d693a03f80f5ae60bfefacd8a349e76746
|
||||||
P c8f009bd24cb4e4b5ce9fbfd8ab09921f19d41af
|
P bda38f5e86db45234c2dbb0f8d1a81f6ff6d04e4
|
||||||
R f45ee7668e1d79012c0ac1e6854fd45f
|
R e49401abe650f38b382c2f4526e14814
|
||||||
U drh
|
U danielk1977
|
||||||
Z 1115270f9ad30d3543333759055c6623
|
Z d013caf2ebacc662cceed0c56ce2e6b5
|
||||||
|
@@ -1 +1 @@
|
|||||||
bda38f5e86db45234c2dbb0f8d1a81f6ff6d04e4
|
3ec8b37a89fdb2436d312439715414fae2cd20a8
|
@@ -9,7 +9,7 @@
|
|||||||
** May you share freely, never taking more than you give.
|
** May you share freely, never taking more than you give.
|
||||||
**
|
**
|
||||||
*************************************************************************
|
*************************************************************************
|
||||||
** $Id: btree.c,v 1.637 2009/06/22 12:05:10 drh Exp $
|
** $Id: btree.c,v 1.638 2009/06/22 18:03:52 danielk1977 Exp $
|
||||||
**
|
**
|
||||||
** This file implements a external (disk-based) database using BTrees.
|
** This file implements a external (disk-based) database using BTrees.
|
||||||
** See the header comment on "btreeInt.h" for additional information.
|
** See the header comment on "btreeInt.h" for additional information.
|
||||||
@@ -6401,6 +6401,7 @@ int sqlite3BtreeInsert(
|
|||||||
)){
|
)){
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
assert( pCur->eState==CURSOR_VALID || (pCur->eState==CURSOR_INVALID && loc) );
|
||||||
|
|
||||||
pPage = pCur->apPage[pCur->iPage];
|
pPage = pCur->apPage[pCur->iPage];
|
||||||
assert( pPage->intKey || nKey>=0 );
|
assert( pPage->intKey || nKey>=0 );
|
||||||
@@ -6417,7 +6418,7 @@ int sqlite3BtreeInsert(
|
|||||||
assert( szNew==cellSizePtr(pPage, newCell) );
|
assert( szNew==cellSizePtr(pPage, newCell) );
|
||||||
assert( szNew<=MX_CELL_SIZE(pBt) );
|
assert( szNew<=MX_CELL_SIZE(pBt) );
|
||||||
idx = pCur->aiIdx[pCur->iPage];
|
idx = pCur->aiIdx[pCur->iPage];
|
||||||
if( loc==0 && CURSOR_VALID==pCur->eState ){
|
if( loc==0 ){
|
||||||
u16 szOld;
|
u16 szOld;
|
||||||
assert( idx<pPage->nCell );
|
assert( idx<pPage->nCell );
|
||||||
rc = sqlite3PagerWrite(pPage->pDbPage);
|
rc = sqlite3PagerWrite(pPage->pDbPage);
|
||||||
|
Reference in New Issue
Block a user