Thanks to visit codestin.com
Credit goes to chromium.googlesource.com
Sign in
chromium
/
external
/
github.com
/
sqlite
/
sqlite
/
HEAD
/
src
/
btree.c
45bc9b9
Merge fixes from trunk into the empty-table-optimizations branch
by drh
· 2 weeks ago
e33ea17
Fix harmless compiler warnings.
by drh
· 2 weeks ago
33f3273
Early exit if one of the inner loops of a 3-way or larger join is an
by drh
· 3 weeks ago
2166766
If the LHS for an EXCEPT or INTERSECT operator is empty, skip over the
by drh
· 3 weeks ago
e77e589
Work around an apparent GCC UBSAN bug. See
by drh
· 3 weeks ago
f453e8d
Fix a harmless compiler warning injected by [c978aed3b6f82b3d].
by drh
· 4 weeks ago
b68d631
Enhance sqlite3BtreeSetPageSize() so that it detects early if no changes
by drh
· 4 weeks ago
37794b4
Improve the accuracy of sqlite3BtreeRowCountEst().
by drh
· 4 weeks ago
397b82c
Generalize the indexCellCompare() so that works on any index page, not just
by drh
· 4 weeks ago
eb9a145
Merge trunk changes into this branch.
by dan
· 7 weeks ago
8658a8d
Remove an unnecessary parameter from sqlite3VdbeRecordUnpack(). Improved
by drh
· 7 weeks ago
b504aab
Add some missing UNUSED_PARAMETER() annotations to squelch downstream build warnings when using -Wextra -pedantic.
by stephan
· 7 weeks ago
ded1959
If blocking locks are enabled, avoid using the busy handler when blocked by another process running recovery.
by dan
· 7 weeks ago
88ed38c
Avoid invoking the busy-handler if a blocking lock times out while attempting to open a snapshot transaction.
by dan
· 7 weeks ago
c071c47
Tamp down various harmless compiler warnings. Use "int" in places instead
by drh
· 5 months ago
ef86b94
Code changes that make it easier to prove that no 32-bit integer overflows
by drh
· 5 months ago
c2e400a
New assert() statements to validate OP_OpenEphemeral logic.
by drh
· 9 months ago
ccd3489
Fix a case where the BTCF_AtLast flag was being left set incorrectly. This was causing obscure window function queries to fail.
by dan
· 11 months ago
eeb8506
The previous check-in was a little two aggressive about skipping the
by drh
· 1 year, 2 months ago
09d8e69
Very small performance increase and size reduction by removing unnecessary
by drh
· 1 year, 2 months ago
ee8f926
Add new assert() statements to help out a static analyzer. Response to
by drh
· 1 year, 2 months ago
06915d0
The first assert() added in [0ebc65481f4a3e79] is not necessarily true in a
by drh
· 1 year, 3 months ago
1d40237
Add assert() statements to help verify the overflow page cache.
by drh
· 1 year, 3 months ago
btree-ovfl-cache
ae7ede4
New assert() statements to verify the correctness of the BTCF_AtLast flag
by drh
· 1 year, 3 months ago
c494fdb
Mark the BTree cell overflow cache as invalid whenever the rowid goes invalid.
by drh
· 1 year, 3 months ago
6324cdf
Add an assert() to help scan-build recognize that a variable is initialized.
by drh
· 1 year, 5 months ago
39670a5
Remove unreachable branches from the PRAGMA integrity_check enhancement of
by drh
· 1 year, 5 months ago
f8dc7d2
Have "PRAGMA quick_check" compare the number of entries in tables and indexes.
by dan
· 1 year, 5 months ago
7c6433c
When inserting a 3-byte cell into a btree, ensure that the extra padding byte
by drh
· 1 year, 5 months ago
e7bdb21
If a table has one or more rows and it has a partial index has zero rows,
by drh
· 1 year, 5 months ago
optimize-after-shrink
84dea82
Add a new sqlite3FaultSim() call in the btree logic, for testing.
by drh
· 1 year, 5 months ago
new-btree-faultsim
50f9caf
More extensive use of SQLITE_CORRUPT_PGNO.
by drh
· 1 year, 6 months ago
d90ecb5
Have "PRAGMA quick_check" compare the number of entries in tables and indexes.
by dan
· 1 year, 6 months ago
quick-check-counts
1d09f4d
Add tracing logic to the shared-cache locks in btree.c. The tracing is
by drh
· 1 year, 6 months ago
d921533
Apply the same fix found in [99057383acc8f920] to descending scans.
by drh
· 1 year, 6 months ago
d059153
Back out [b517a52fa36df0a0] which is no longer reachable due to early
by drh
· 1 year, 7 months ago
1b2a93e
Cleanup shell.c comments. Hide -utf8 option, as it is undocumented and accepted only for backward compatibility. No functional changes except for -help content.
by larrybr
· 1 year, 9 months ago
c42276f
Back out [2904fcbeebba9189], mostly. The page bitmap is needed even for a
by drh
· 1 year, 9 months ago
c0ba6a9
Fix various harmless scan-build warnings.
by drh
· 1 year, 9 months ago
266e5d0
Avoid an unnecessary malloc() for the page usage bitmap when running
by drh
· 1 year, 9 months ago
9132b88
Earlier detection of a host of errors in CREATE TABLE, such the CREATE TABLE
by drh
· 1 year, 9 months ago
5d9446d
Improved detection of corrupt databases in balance_nonroot().
by drh
· 1 year, 10 months ago
3a3912f
Remove a stray blank line from the beginning of btree.c. No functional
by drh
· 1 year, 10 months ago
3811905
Remove a NEVER() in btree.c that could actually be reached, with the approriate
by drh
· 1 year, 10 months ago
594f5e2
The OP_Column opcode caches large column values coming from overflow pages.
by drh
· 2 years ago
bc6d949
Fix an off-by-one error in tests for cells overflowing the end pages. The
by drh
· 2 years ago
bc532ae
Fix harmless scan-build warnings.
by drh
· 2 years ago
d4170ac
Simplification to the getAndInitPage() routine that results in improved
by drh
· 2 years, 1 month ago
71aac87
Improved comment on the getAndInitPage() in btree.c. No code changes.
by drh
· 2 years, 1 month ago
56a4107
Address various harmless compiler warnings from
by drh
· 2 years, 1 month ago
997670f
Check-in [70e12efd1b189560] left a path through lockBtree() that failed to
by drh
· 2 years, 1 month ago
b102d62
Defer setting the BTS_PAGESIZE_FIXED flag until after we are certain there
by drh
· 2 years, 1 month ago
7520116
Simplify a memcpy() in defragmentPage(). It now might copy more content than
by drh
· 2 years, 1 month ago
55be216
Fix straggler misspellings and tidy the custom dictionary. Also include pickups from [forum:/info/c61fb09afd|forum post c61fb09afd].
by larrybr
· 2 years, 1 month ago
spell-check
bc91738
Add a C-source spell-checking facility. make misspell (on Nix)
by larrybr
· 2 years, 1 month ago
2c6c98d
Fix incorrect b-tree root page reports from the enhanced PRAGMA integrity_check
by drh
· 2 years, 2 months ago
a03be79
Fast-path the btree transaction start for the common case where a
by drh
· 2 years, 2 months ago
addc7e0
In editPage(), if an attempt is made to edit an empty 64KB page, then take
by drh
· 2 years, 2 months ago
f9b58eb
Fix harmless compiler warnings.
by drh
· 2 years, 3 months ago
a9c4c82
Fix an incorrect assert() statement in btree.c as found by
by drh
· 2 years, 3 months ago
ed36917
New assert() statements to validate the parameters to
by drh
· 2 years, 3 months ago
65aae44
Guard against oversized cells in the newly enhanced pageFreeArray().
by drh
· 2 years, 3 months ago
btree-freespace-opt
3da5e2a
Add NEVER on an unreachable branch.
by drh
· 2 years, 3 months ago
81e31c9
Fix an assert().
by drh
· 2 years, 3 months ago
706c33d
Tweaks to the new insertCellFast().
by drh
· 2 years, 3 months ago
34ceb7e
Clone insertCell() into insertCellFast() for use by sqlite3BtreeInsert() for
by drh
· 2 years, 3 months ago
b39f037
Small performance improvement in freeSpace().
by drh
· 2 years, 3 months ago
50dc8d9
Increase the size of the cache of free blocks inside of pageFreeArray() to
by drh
· 2 years, 4 months ago
d8c34e3
Stronger constraint checking in allocateSpace().
by drh
· 2 years, 4 months ago
af33654
Earlier detection of corruption in sqlite3BtreeDelete().
by drh
· 2 years, 4 months ago
e5ea81a
Improved error messages from PRAGMA integrity_check. Identify the root of
by drh
· 2 years, 4 months ago
2e89f1c
In the b-tree module use %u instead of %d to print unsigned quantities such
by drh
· 2 years, 4 months ago
1eca5b5
Minor change to btreeNext() to facilitate coverage testing.
by drh
· 2 years, 4 months ago
bb130c9
Fix a problem causing a cursor to retain an out-of-date cell-info cache when processing a DISTINCT query on values that are identical according to their collation sequence, but different on disk. [forum:/forumpost/e132e6cde44fb505|Forum post e123e6cde4].
by dan
· 2 years, 4 months ago
5531316
Remove a NEVER() from btreeNext() that dbsqlfuzz 460aa158f9a2c41145831cc924296cde1f312b3f
by drh
· 2 years, 4 months ago
485a92c
Performance optimization in the varint decoder for the cell parser.
by drh
· 2 years, 5 months ago
2d78290
Split out a new variant of cellSizePtr() that applies only to leaf pages,
by drh
· 2 years, 5 months ago
20e09ba
Remove an unnecessary and redundant corruption checks in defragmentPage().
by drh
· 2 years, 5 months ago
f92b006
Add an assert() to help static analyzers.
by drh
· 2 years, 6 months ago
5dd74bf
Improved progress-handler and interrupt detection during PRAGMA integrity_check.
by drh
· 2 years, 6 months ago
1eb88d6
Small performance improvement in the btreeOverwriteCell() routine.
by drh
· 2 years, 7 months ago
d3fc2e6
Check-in [8d5b76593d82b3a5] contained an error that was causing some obscure
by drh
· 2 years, 8 months ago
5b046da
Fix harmless compiler warnings.
by drh
· 2 years, 8 months ago
1b3d13e
Add the SQLITE_FCNTL_RESET_CACHE verb. Use it to ensure that the page cache is purged before and after a the recovery extension is run.
by dan
· 2 years, 8 months ago
b53d8fa
Performance optimization and size reduction in insertCell() by omitting
by drh
· 2 years, 8 months ago
e7d5384
Performance optimization to sqlite3BtreeInsert().
by drh
· 2 years, 8 months ago
d01dee5
Small performance improvement in sqlite3BtreeTransferRow().
by drh
· 2 years, 8 months ago
ecba107
New assert()s confirm that BTREE_PREFORMAT must be the same value as
by drh
· 2 years, 8 months ago
5a1d659
Performance optimization in sqlite3BtreeInsert().
by drh
· 2 years, 8 months ago
16635fa
Performance improvement and size reduction in balance_nonroot().
by drh
· 2 years, 8 months ago
47de1f9
Small performance improvement and size reduction in btree.
by drh
· 2 years, 8 months ago
1e62057
Improved comments on the pageFreeArray() routine of btree.c. No changes to
by drh
· 2 years, 8 months ago
bf9b994
Streamline the decodeFlags() routine in btree.c for a small performance
by drh
· 2 years, 8 months ago
85728a2
Small performance optimization in btree.c.
by drh
· 2 years, 8 months ago
da01757
Fix requirements marks so that they match documentation corrections.
by drh
· 2 years, 9 months ago
881f0f4
Remove an unimportant testcase() macro that is no longer reachable due to the
by drh
· 2 years, 9 months ago
005c9d8
Improved detection of database corrupting when moving pages on an
by drh
· 2 years, 9 months ago
7bc6a81
Remove one of the NEVER() macros added by [5166acf3f0040459] because it
by drh
· 2 years, 10 months ago
0a803bd
Add NEVER() to two error-detection tests that were made unreachable by
by drh
· 2 years, 10 months ago
ad658b2
Better handle a case of database corruption where a b-tree page is one of its own ancestor pages.
by dan
· 2 years, 10 months ago
Next »