drh
5e483939bc
Fix a pager reference count leak in btree that occurs on an OOM following
...
a database page size change. (CVS 6875)
FossilOrigin-Name: c6dfc8bd3911b4c93969bfc13d9931965feed674
2009-07-10 16:51:30 +00:00
drh
8c2bbb620b
Simplifications to the PRAGMA integrity_check logic in btree.c. (CVS 6873)
...
FossilOrigin-Name: 440c573c7e2a22f9a67a9571883e205fbadb7c11
2009-07-10 02:52:20 +00:00
drh
7157e1d2e5
Fix two faulty assert() statements btree. (It was possible for the assertions
...
to be false given a corrupt database file as input.) (CVS 6872)
FossilOrigin-Name: 9403f04dfdabdd2ba9adb1a91ca9b400cf4ca6b3
2009-07-09 13:25:32 +00:00
danielk1977
5cb0963fdc
Remove an unused branch from btree.c. (CVS 6871)
...
FossilOrigin-Name: 45efb78a8a1e01a0154153b10469bb34d6d129eb
2009-07-09 11:36:01 +00:00
danielk1977
9d10486ae7
In btree.c, have setSharedCacheLock() assume that the b-tree is sharable instead of checking to see if it is. The caller has already performed this check. (CVS 6870)
...
FossilOrigin-Name: 3190eefd5f5285a5250d6f4729f109852fdb02ab
2009-07-09 08:27:14 +00:00
danielk1977
3054866c7c
Restore (btree_set_cache_size) to test3.c. This is used on unix for the tcl "crash tests". Make some functions no longer used outside of btree.c static. (CVS 6869)
...
FossilOrigin-Name: 1d96ce8c76e007ca29e7971a6c72b6387fe0fb93
2009-07-09 05:07:37 +00:00
shane
cbcadd41f9
removed the test function sqlite3BtreeFlags() (test code only); (CVS 6868)
...
FossilOrigin-Name: 579ba6c83f52d26860e5152f06355aa4f49e568d
2009-07-09 03:20:46 +00:00
shane
20a35fd826
removed unused functions from test3.c (test code only); (CVS 6867)
...
FossilOrigin-Name: 0eb69e8dda13e2d52a06f66a71480f59fd766271
2009-07-09 02:48:23 +00:00
drh
df35a08cb7
Simplifications and additional testcase() macros for btree.c. (CVS 6866)
...
FossilOrigin-Name: 1b8c3a8246a5d8b8f5607014f68483735a403249
2009-07-09 02:24:35 +00:00
danielk1977
4e6604ee80
Fix a typo in (6861): "ifndef SQLITE_TEST" -> "ifdef SQLITE_TEST". (CVS 6865)
...
FossilOrigin-Name: 890dbab28c3a1af4a1e01221318c9200574139e7
2009-07-08 18:50:55 +00:00
danielk1977
4f02960899
Revert part of (6860) that was accidentally checked in. (CVS 6864)
...
FossilOrigin-Name: 11e295ccd28fe669ee74c846db507040895a5e5b
2009-07-08 18:45:37 +00:00
drh
f3aed5944c
Add another boundary-condition testcase() macro to btree.c. Correct the
...
comment on modifyPagePointer(). (CVS 6863)
FossilOrigin-Name: fed66e8695ee552d5ca05ac91485cfc5940e7496
2009-07-08 18:12:49 +00:00
drh
b908d76fb8
Improvements to comments in btree.c:freeSpace(). Added a testcase() macro
...
to verify a boundary case is tested in sqlite3BtreeInitPage(). (CVS 6862)
FossilOrigin-Name: 5ac991b3cea214095b8369e85f3e0ad8e5059ad6
2009-07-08 16:54:40 +00:00
drh
35a25da1b3
Comment out sqlite3BtreeFlags() when not in debug mode. Tweaks to
...
database corruption detection logic in freeSpace(). (CVS 6861)
FossilOrigin-Name: 196cbf82290a308e78b13044d0fae993f2d5cb90
2009-07-08 15:14:50 +00:00
danielk1977
c9000e60c6
Fix error handling in sqlite3BtreePutData(). (CVS 6860)
...
FossilOrigin-Name: 86eba4f16fd9e97344ab6dfb9cb9a85cf14751dd
2009-07-08 13:55:28 +00:00
danielk1977
ecaecf929e
Remove an ALWAYS clause that could be false if an IO error within a statement executed by a virtual table caused an emergency rollback. (CVS 6859)
...
FossilOrigin-Name: 0cc705c2c4aa06c33361b11c06423ff76d9eed7c
2009-07-08 08:05:35 +00:00
drh
0a45c270be
Simplifications to sqlite3BtreeInsert() and allocateSpace(). Added many
...
testcase() macros to verify boundary conditions in btree.c. (CVS 6858)
FossilOrigin-Name: aab82a229a984bdd37bda2d140cf4279ab54a741
2009-07-08 01:49:11 +00:00
drh
1714662877
Improvements to corrupt database detection in defragmentPage(). (CVS 6857)
...
FossilOrigin-Name: 87bbc8d6b68c089c8211c35c11c2f6ac4e46271c
2009-07-07 17:38:38 +00:00
danielk1977
172114a02e
Do not load the root-page of a b-tree table/index when opening a cursor. Instead, allow it to be loaded when the cursor is first used (in function moveToRoot()). Also move the root-page flags sanity checks that were a part of the OP_OpenRead/OpenWrite opcodes into the moveToRoot() function. (CVS 6856)
...
FossilOrigin-Name: 06dcfe72a6ff3f63639eeb00ec5b5022d10fc55b
2009-07-07 15:47:12 +00:00
drh
4925a55d14
Fix a reference count problem following database corruption detection in
...
the ptrmapPut() routine of btree.c. (CVS 6854)
FossilOrigin-Name: ec1e27e33b89e809a03e4140b351f6c8674c0233
2009-07-07 11:39:58 +00:00
drh
fa3be90471
Simplifications to btree.c and vdbeaux.c in support of structural coverage
...
testing. (CVS 6853)
FossilOrigin-Name: fc2a40a9db23285da16f40f5131613907fb80f02
2009-07-07 02:44:07 +00:00
danielk1977
3509a65827
Make the sqlite3BtreeMoveto function static, since it is only used from within btree.c. Remove unused function lockBtreeWithRetry from btree.c. (CVS 6850)
...
FossilOrigin-Name: 30d5ec62ab6a85ee60ee4128e20959842f8c7ad1
2009-07-06 18:56:13 +00:00
danielk1977
3e8add919a
Remove unreachable code from function btreeCursor() in btree.c. (CVS 6848)
...
FossilOrigin-Name: c76a366ed4dc63604ff695b3ee9c183e430a367e
2009-07-04 17:16:00 +00:00
danielk1977
1bc9ee9835
Remove a redundant branch from btree.c. (CVS 6847)
...
FossilOrigin-Name: 133357d2f070ba303deddff59beead1ec8d10521
2009-07-04 15:41:02 +00:00
danielk1977
e0d9e6f623
Simplify the way the read-uncommitted flag is handled to facilitate test coverage. (CVS 6841)
...
FossilOrigin-Name: e2112d6160a82ccd4b6a1c798d2064d0f1b086eb
2009-07-03 16:25:06 +00:00
danielk1977
94b30733f7
When a b-tree transaction is committed when there are open cursors, downgrade shared-cache write-locks to read-locks instead of relinquishing all locks. Fix for #3942 . (CVS 6837)
...
FossilOrigin-Name: 611e704fdf90a3d3932ca1cbab4be7e282bf1ddf
2009-07-02 17:21:57 +00:00
danielk1977
602b466e99
Cause opening a transaction on a sharable b-tree module automatically obtain a read-lock on page 1. This means there is no way for sqlite3BtreeGetMeta() to fail. (CVS 6836)
...
FossilOrigin-Name: e3c055f167f895ae45858de9d9d8a264df2f36b6
2009-07-02 07:47:33 +00:00
danielk1977
325ccfa90e
Fix for compilation with OMIT_AUTOVACUUM defined. Ticket #3940 . (CVS 6835)
...
FossilOrigin-Name: 8f0591ae98c2125a4922933496f4412aee8ab86e
2009-07-02 05:23:25 +00:00
danielk1977
96d48e963a
Cause incremental-blob read/write operations lock shared-cache tables in the same way as normal SQL read/writes. Add complex assert statements to make sure tehe correct shared-cache locks are held when accessing the database. Eliminate some redundant checks from btree.c. (CVS 6830)
...
FossilOrigin-Name: f17ef37897da9bcaf20b5acdce6840522c0a0b16
2009-06-29 06:00:37 +00:00
shane
36840fdddb
Removed a few compiler warnings under MSVC. (CVS 6825)
...
FossilOrigin-Name: f01a9fc375d77c67602a9f6be6a674beb516233f
2009-06-26 16:32:13 +00:00
danielk1977
46aa38f2c0
Fix a problem with a return code being ignored in insertCell(). (CVS 6816)
...
FossilOrigin-Name: bb5f1c01435dcc1ea056f0d149f750fa7812f652
2009-06-25 16:11:05 +00:00
danielk1977
c1761e887b
Replace an "if" condition that is always true in btree.c with an assert(). (CVS 6814)
...
FossilOrigin-Name: daadbd9a8f0e35dd16c715cf2e9f99f52afa30dd
2009-06-25 09:40:03 +00:00
danielk1977
13bd99fa43
Simplify things by rolling the functionality of balance_shallower() into balance_nonroot(). (CVS 6808)
...
FossilOrigin-Name: 11750c6aee6aa05b2627ad9dfb2fbcdfe8944168
2009-06-24 05:40:34 +00:00
danielk1977
1c3d2bf9cf
Remove a condition from balance_nonroot() that is always true. (CVS 6806)
...
FossilOrigin-Name: c5dc80e6bdd18a5ada728c8d5c9403ac233f1c9a
2009-06-23 16:40:17 +00:00
danielk1977
cd581a7eff
Call balance_shallower() from balance_nonroot() instead of from balance(). This simplifies coverage testing a bit. (CVS 6805)
...
FossilOrigin-Name: da9893e23caf89090c8b6563cb5f88d7dbf7c260
2009-06-23 15:43:39 +00:00
danielk1977
54109bb206
Fix a failing assert in btree.c. The same bug was causing a spurious SQLITE_CORRUPT return when compiled without SQLITE_DEBUG. (CVS 6800)
...
FossilOrigin-Name: 47ec8749470af7cab9f3ef15effce1a7ba79a654
2009-06-23 11:22:29 +00:00
danielk1977
b980d2219f
Remove a condition that is always true from btree.c. (CVS 6798)
...
FossilOrigin-Name: 3ec8b37a89fdb2436d312439715414fae2cd20a8
2009-06-22 18:03:51 +00:00
drh
27731d7c73
Make sure sqlite3BtreeCreateTable() returns an error code if the largest
...
rootpage field is invalid in auto_vacuum mode. Update file-format comments
to describe all of the "meta" values. (CVS 6797)
FossilOrigin-Name: bda38f5e86db45234c2dbb0f8d1a81f6ff6d04e4
2009-06-22 12:05:10 +00:00
drh
fa9601a9a6
Move codec management from database connections into the pager so that it
...
will work together with shared cache. (CVS 6782)
FossilOrigin-Name: ed08b53cd64c4ff2c94ef4e48441c5236041c9ca
2009-06-18 17:22:39 +00:00
drh
b33e1b99b0
Reduce the minimum usable page space to 480 byte from 500 bytes. (CVS 6780)
...
FossilOrigin-Name: db4fb835363c9c7e38c891e01188a6e2db88472d
2009-06-18 11:29:20 +00:00
drh
042d6a1f0f
Fix a potential segfault following database corruption. Problem
...
made visible by check-in (6772). (CVS 6775)
FossilOrigin-Name: 69eb0ff817cff6266c53b79047bcff5e5d54b618
2009-06-17 13:57:16 +00:00
drh
0d588bbc38
Suppress some -Wextra compiler warnings from GCC. (CVS 6774)
...
FossilOrigin-Name: 59ec937ce226bbf6c48c5e0466d3bab48873c9ea
2009-06-17 13:09:38 +00:00
danielk1977
11a8a8660c
Fix a bug affecting secure-delete mode introduced by (6768). (CVS 6773)
...
FossilOrigin-Name: a433ca821c134caeac0fa16416eb95c647416b95
2009-06-17 11:49:52 +00:00
danielk1977
e576521d96
Fix for #3918 . Also, fix the TRACE macros in balance_nonroot(). (CVS 6772)
...
FossilOrigin-Name: 368e44ec2e648b04f3b817f82586ccd864e60c89
2009-06-17 11:13:28 +00:00
danielk1977
4dbaa89005
Changes to balance_nonroot() and BtreeDelete() to simplify delete operations and reduce stack/heap usage while balancing b-tree structures. (CVS 6768)
...
FossilOrigin-Name: 092b276e7d89bbfa3d8637a90ee5d458935a12a9
2009-06-16 16:50:22 +00:00
danielk1977
cb55799952
Remove a duplicate assert from btree.c. Ticket #3915 . (CVS 6765)
...
FossilOrigin-Name: d89542cd8b2efaea7c6be6cd7787d183c55ae36a
2009-06-16 04:31:49 +00:00
shane
8509570763
Fix compiler warnings with MSVC build. (CVS 6761)
...
FossilOrigin-Name: e1e6430752449a34671b6c89326b03ac36ea6d9a
2009-06-15 16:27:08 +00:00
drh
eac74428c1
Detect database corruption and abort balance_nonroot() before the
...
corruption causes problems. (CVS 6758)
FossilOrigin-Name: 3448b39dcd580880a9326414e7e4952c4fbc313d
2009-06-14 12:47:11 +00:00
danielk1977
e56b60ecb8
Minor tweak to balance_quick() to save a few instructions. (CVS 6743)
...
FossilOrigin-Name: 9ace995910c8b0b9e95dc20fd70be487199e37af
2009-06-10 09:11:06 +00:00
shane
75ac1de0ad
Fix compiler warnings with MSVC build. (CVS 6741)
...
FossilOrigin-Name: 0bd84e7387802c58c820369ff27ef54adbdf2e96
2009-06-09 18:58:52 +00:00