SQLite

All files named "src/pager.c"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for src/pager.c

2024-04-15
14:36
[f620722c] part of check-in [eedf6bed] Merge the latest trunk enhancements into the begin-concurrent branch. (check-in: [eedf6bed] user: drh branch: begin-concurrent, size: 307274)
14:29
[8ad7a6f6] part of check-in [4c23cad9] Merge from wrong branch. Bedrock should be updated from wal2, not from trunk. (check-in: [4c23cad9] user: drh branch: mistake, size: 307901)
14:21
[6ba34a87] part of check-in [2ccc0185] Merge all 3.45.3 changes into the wal2-3.45 branch. (check-in: [2ccc0185] user: drh branch: wal2-3.45, size: 302108)
14:18
[fcf1948d] part of check-in [3dda82e0] Merge all 3.45.3 changes into the begin-concurrent-3.45 subbranch. (check-in: [3dda82e0] user: drh branch: begin-concurrent-3.45, size: 306860)
2024-04-11
19:08
[9beb80f6] part of check-in [5dae6e6d] Fix handling of the SQLITE_OMIT_WAL check in one place. Resolves forum post 87cc13302de160eb. (check-in: [5dae6e6d] user: stephan branch: trunk, size: 301478)
2024-03-29
18:19
[9ab2b291] part of check-in [1f3a805d] Fix handling of an OOM case broken by [11015b4e]. (check-in: [1f3a805d] user: dan branch: bedrock, size: 307898)
18:16
[f7db1a85] part of check-in [9e6b64de] Fix handling of an OOM case broken by [49263c91]. (check-in: [9e6b64de] user: dan branch: begin-concurrent, size: 307271)
18:07
[dc75e2a5] part of check-in [11015b4e] Fix a problem in SQLITE_DIRECT_OVERFLOW_READ builds that could allow a concurrent transaction to be committed even if it read from an overflow page that was modified concurrently, in cases where the overflow page was written without also writing the b-tree page to which it is linked. (check-in: [11015b4e] user: dan branch: bedrock, size: 307891)
17:58
[8618d789] part of check-in [49263c91] Fix a problem in SQLITE_DIRECT_OVERFLOW_READ builds that could allow a concurrent transaction to be committed even if it read from an overflow page that was modified concurrently, in cases where the overflow page was written without also writing the b-tree page to which it is linked. (check-in: [49263c91] user: dan branch: begin-concurrent, size: 307264)
2024-01-04
16:28
[76a1c3cc] part of check-in [707f79c7] Merge the latest trunk enhancements into the bedrock branch. (check-in: [707f79c7] user: drh branch: bedrock, size: 307484)
16:16
[ac0201bd] part of check-in [8fb42df8] Merge the latest trunk enhancements into the wal2 branch. (check-in: [8fb42df8] user: drh branch: wal2, size: 302105)
15:49
[267f4ec1] part of check-in [c407d3bb] Merge the latest trunk enhancements into the begin-concurrent branch. (check-in: [c407d3bb] user: drh branch: begin-concurrent, size: 306857)
2024-01-02
21:37
[ff60e981] part of check-in [eed670ea] Adjust the sqlite3PagerDirectReadOk() routine (part of the SQLITE_DIRECT_OVERFLOW_READ optimization) to use less code and to be more easily testable. (check-in: [eed670ea] user: drh branch: trunk, size: 301475)
2023-12-28
14:01
[e9834285] part of check-in [5a17b972] Merge the latest trunk changes into the bedrock branch. (check-in: [5a17b972] user: drh branch: bedrock, size: 307514)
13:44
[b24ac413] part of check-in [1f592dd3] Merge the latest trunk enhancements into the wal2 branch. (check-in: [1f592dd3] user: drh branch: wal2, size: 302135)
13:40
[7537644f] part of check-in [b3a2adfd] Merge recent trunk enhancements into the begin-concurrrent branch. (check-in: [b3a2adfd] user: drh branch: begin-concurrent, size: 306887)
2023-12-22
15:42
[d1932508] part of check-in [7374c234] Update #ifdef checks in pager.c and util.c to account for [0462a2612d1fc1d0] to resolve the build problem reported in forum post 9819032aac. (check-in: [7374c234] user: stephan branch: branch-3.44, size: 301451)
15:41
[fef16beb] part of check-in [0f22d809] Update #ifdef checks in pager.c and util.c to account for [0462a2612d1fc1d0] to resolve the build problem reported in forum post 9819032aac. (check-in: [0f22d809] user: stephan branch: trunk, size: 301505)
2023-12-20
11:34
[dc0cccda] part of check-in [206d8c65] Avoid harmless integer overflow in pager status statistics gathering. Response to forum post 7f4cdf23f9. (check-in: [206d8c65] user: drh branch: trunk, size: 301470)
2023-11-22
16:15
[f6343cfe] part of check-in [84f42157] Merge the version 3.44.1 patch into a new sub-branch of bedrock. (check-in: [84f42157] user: drh branch: bedrock-3.44, size: 307425)
15:34
[3f41b76d] part of check-in [2672572c] Merge the 3.44.1 patches into a sub-branch of wal2. (check-in: [2672572c] user: drh branch: wal2-3.44, size: 302046)
15:29
[cb36e6cc] part of check-in [7a1a114b] Merge the 3.44.1 patches into a new sub-branch of begin-concurrent. (check-in: [7a1a114b] user: drh branch: begin-concurrent-3.44, size: 306798)
2023-11-09
18:41
[987ab3a2] part of check-in [3cfcaafa] Ensure 8-byte alignment of data structues in sqlite3_database_file_object(). (check-in: [3cfcaafa] user: drh branch: branch-3.44, size: 301416)
2023-10-30
22:57
[7af6469f] part of check-in [956b03a4] Merge the latest 3.44.0 release candidate patches into the bedrock branch. (check-in: [956b03a4] user: drh branch: bedrock, size: 307364)
21:46
[b9115520] part of check-in [4f65ae2d] Merge the latest 3.44.0 changes into wal2 branch. (check-in: [4f65ae2d] user: drh branch: wal2, size: 301985)
21:39
[749ba24f] part of check-in [9fa405eb] Merge the latest trunk changes into the begin-concurrent branch. (check-in: [9fa405eb] user: drh branch: begin-concurrent, size: 306737)
19:03
[699aab8d] part of check-in [7564ff1b] Add a cast to i64 for an integer in an sqlite3OsWrite() offset calculation. The cast is not strictly necessary, but it helps human readers see that the code is correct. (check-in: [7564ff1b] user: drh branch: trunk, size: 301355)
12:09
[9c9343d9] part of check-in [c9fdd680] With SQLITE_ENABLE_BLOCK_ATOMIC_WRITE enabled, if a transaction is committing and there is a new freelist page at the end of the database file which would cause the database file size to grow, ensure that page is written and the file size grows before the block-atomic-write commits. Fix for the problem identified by forum post 3bd8d497b2 (check-in: [c9fdd680] user: drh branch: trunk, size: 301350)
2023-10-23
16:08
[3404de99] part of check-in [c9c9bc09] Merge latest changes from wal2 into this branch. (check-in: [c9c9bc09] user: dan branch: bedrock, size: 307027)
16:00
[cc913d9d] part of check-in [3a6479d3] Merge latest trunk changes into this branch. (check-in: [3a6479d3] user: dan branch: wal2, size: 301648)
15:48
[8598c412] part of check-in [c5ef898a] Merge latest trunk changes into this branch. (check-in: [c5ef898a] user: dan branch: begin-concurrent, size: 306400)
2023-10-17
10:47
[2188897e] part of check-in [1d67f75d] When an I/O or similar error occurs during a transaction with journal_mode=MEMORY, attempt to rollback before closing the journal, as all rollback information is forgotten when a memory rollback journal is closed. (check-in: [1d67f75d] user: drh branch: trunk, size: 301018)
2023-10-12
17:41
[4aa388e4] part of check-in [29937081] Make sure the journal file is closed when transitioning into MEMORY journal mode, to avoid an assertion fault in the new sqlite3_randomness() avoidance code added by [c84e4483cb44f827]. (check-in: [29937081] user: drh branch: trunk, size: 300060)
2023-10-09
17:54
[bbd9b93c] part of check-in [c84e4483] Avoid calling sqlite3_randomness and taking the PRNG mutex when writing a journal header in "journal_mode=memory" mode. (check-in: [c84e4483] user: dan branch: trunk, size: 300025)
2023-08-11
19:38
[356c794f] part of check-in [cb3cf9ba] Merge latest trunk changes, including support for handling of structured-exceptions in MSVC builds, with this branch. (check-in: [cb3cf9ba] user: dan branch: begin-concurrent, size: 304475)
19:36
[fda6c42c] part of check-in [331f2f3e] Merge latest wal2 changes, including support for handling of structured-exceptions in MSVC builds, with this branch. (check-in: [331f2f3e] user: dan branch: bedrock, size: 305102)
2023-08-10
18:58
[e7af170f] part of check-in [fd58c616] Experimental merge of the wal-shm-exceptions and wal2 branches. (check-in: [fd58c616] user: dan branch: wal2-shm-exceptions, size: 299723)
2023-07-06
17:55
[993445a1] part of check-in [e59cea2d] Merge all recent trunk enhancements into the wal-shm-exceptions branch. (check-in: [e59cea2d] user: drh branch: wal-shm-exceptions, size: 299093)
2023-06-22
14:40
[71f3c8b4] part of check-in [0551b79b] Merge the latest trunk enhancements into the bedrock branch. (check-in: [0551b79b] user: drh branch: bedrock, size: 304977)
14:20
[0a7a6959] part of check-in [80ac494f] Merge the latest trunk enhancements into the wal2 branch. (check-in: [80ac494f] user: drh branch: wal2, size: 299598)
13:28
[e2039b61] part of check-in [5bd26fea] Merge recent trunk enhancements into the begin-concurrent branch. (check-in: [5bd26fea] user: drh branch: begin-concurrent, size: 304350)
2023-06-19
18:16
[d41c9e4c] part of check-in [4b08d4da] Add the sqlite3_commit_status() API. For querying a connection for (a) the ranges of wal/wal2 frames written after a successful commit, and (b) the conflicting frame following a failed commit of a BEGIN CONCURRENT transaction. (check-in: [4b08d4da] user: dan branch: bedrock, size: 305565)
2023-06-16
14:39
[5ddf3a74] part of check-in [365caf2f] Address various harmless compiler warnings from forum post d526da8ee4. (check-in: [365caf2f] user: drh branch: trunk, size: 298968)
11:05
[30adfa7f] part of check-in [da1252b2] Fix the pager such that if the xOpen() message sends back the SQLITE_OPEN_MEMORY flag, the pager is opened in journal-mode MEMORY, even if compiled with SQLITE_OMIT_DESERIALIZE. No changes to the logic as long as that OMIT flag is omitted. We need to better document the behavior of xOpen to describe this. (check-in: [da1252b2] user: drh branch: trunk, size: 298924)
2023-06-07
17:03
[0dfe6a9c] part of check-in [8c291d99] Fix straggler misspellings and tidy the custom dictionary. Also include pickups from forum post c61fb09afd. (check-in: [8c291d99] user: larrybr branch: spell-check, size: 299025)
08:40
[eeb41200] part of check-in [26c1bb4b] Add a C-source spell-checking facility. make misspell (on Nix) (check-in: [26c1bb4b] user: larrybr branch: spell-check, size: 299024)
2023-05-13
15:17
[24fe15ba] part of check-in [18c5e16b] Merge the latest 3.42.0 changes from trunk into the begin-concurrent branch. (check-in: [18c5e16b] user: drh branch: begin-concurrent, size: 304939)
15:10
[9dd0da3b] part of check-in [d55ba8bb] Merge the latest 3.42.0 beta changes into the bedrock branch. (check-in: [d55ba8bb] user: drh branch: bedrock, size: 305568)
15:07
[1a68546b] part of check-in [3bbfbdcd] Merge the latest 3.42.0 beta from trunk into the wal2 branch. For some reason, the previous merge didn't work. Probably a PEBKAC. (check-in: [3bbfbdcd] user: drh branch: wal2, size: 300189)
2023-05-07
03:23
[45e2ef5e] part of check-in [2bb8d977] It turns out that pagerExclusiveLock() can be called with the lock state already set to RESERVED if the SQLITE_FCNTL_PERSIST_WAL setting is set and a specific sequence of multiple journal mode changes occur. Enhance pagerExclusiveLock() to deal with this. Forum post 8130545bc6 (check-in: [2bb8d977] user: drh branch: trunk, size: 299560)
2023-05-04
14:41
[c0de0168] part of check-in [b2e0800b] Merge latest wal2 changes into this branch. (check-in: [b2e0800b] user: dan branch: bedrock, size: 305520)
2023-05-02
21:10
[5e7fff45] part of check-in [6f22c767] Update this branch with latest changes from trunk. (check-in: [6f22c767] user: dan branch: begin-concurrent, size: 304891)
19:58
[33aaa2ca] part of check-in [0215dcc7] Merge the latest trunk enhancements into the wal2 branch. (check-in: [0215dcc7] user: drh branch: wal2, size: 300141)
2023-04-19
15:39
[7227ab6b] part of check-in [551b9dac] Do not remove pages from the cache of an in-memory database due to a failure to acquire the page due to it being larger than the maximum page size. (check-in: [551b9dac] user: drh branch: branch-3.41, size: 299325)
15:35
[9d36dded] part of check-in [982b3556] Do not remove pages from the cache of an in-memory database due to a failure to acquire the page due to it being larger than the maximum page size. Fix for forum post a19bb49140. (check-in: [982b3556] user: drh branch: trunk, size: 299512)
14:26
[725385bd] part of check-in [d419e65e] Fix ambiguity in the header comment to the sqlite3PagerUnrefNotNull() routine. No code changes. (check-in: [d419e65e] user: drh branch: trunk, size: 299410)
13:30
[575133bd] part of check-in [0daadf36] Add pager debug tracing of truncate operations. (check-in: [0daadf36] user: drh branch: trunk, size: 299290)
2023-02-27
21:53
[b0567824] part of check-in [37c5c8aa] Make the "unref" operation on database pages a method which is part of the PgHdr object. This is a potential performance optimization. (check-in: [37c5c8aa] user: drh branch: unref-opt, size: 299350)
2023-02-18
21:52
[e5b7c682] part of check-in [73e9f8d0] Merge the lastest trunk code into the bedrock branch. (check-in: [73e9f8d0] user: drh branch: bedrock, size: 305231)
21:42
[ae24da47] part of check-in [a36de0c8] Merge the latest trunk enhancements into the wal2 branch. (check-in: [a36de0c8] user: drh branch: wal2, size: 299852)
21:35
[d45d7453] part of check-in [6fb8bb2e] Merge the latest trunk enhancements into the begin-concurrent branch. (check-in: [6fb8bb2e] user: drh branch: begin-concurrent, size: 304602)
2023-02-13
18:26
[39af8ff7] part of check-in [bf6f1ee7] Fix compile time option SQLITE_DEFAULT_SYNCHRONOUS so that it works consistently. (check-in: [bf6f1ee7] user: dan branch: trunk, size: 299223)
2023-02-07
11:39
[5a8e1b8d] part of check-in [b7d9f14d] Merge the latest trunk enhancements into the bedrock branch. (check-in: [b7d9f14d] user: drh branch: bedrock, size: 305581)
2023-02-06
17:48
[586f2071] part of check-in [44f8f33d] Merge the latest trunk enhancements into the wal2 branch. (check-in: [44f8f33d] user: drh branch: wal2, size: 300202)
17:35
[45b2b844] part of check-in [46e79167] Merge the latest trunk enhancements into the begin-concurrent branch. (check-in: [46e79167] user: drh branch: begin-concurrent, size: 304952)
2023-02-04
20:07
[7d1e34be] part of check-in [a4eb0b0d] Remove an ALWAYS() that can be false in some very rare cases. dbsqlfuzz 2274a23c85a93b870f7eb12fe686073da01abc33 (check-in: [a4eb0b0d] user: drh branch: trunk, size: 299573)
2023-02-03
14:57
[a70ebfdc] part of check-in [c045d76b] Attempt to fix harmless compiler warnings that reportedly appear in clang 15. (check-in: [c045d76b] user: drh branch: trunk, size: 299581)
2023-02-02
14:27
[f5810100] part of check-in [5a22010c] Merge latest enhancments into this branch from branch wal2. (check-in: [5a22010c] user: dan branch: begin-concurrent-pnu-wal2, size: 305661)
14:21
[35ab7003] part of check-in [c9b01802] Merge trunk enhancements into this branch. (check-in: [c9b01802] user: dan branch: wal2, size: 300282)
2023-01-23
21:41
[fc6d3ec7] part of check-in [48bb7c88] Suppress a harmless compiler warning. Forum post e3f72e9291189925. The code was legal and correct. The revised code is actually less clear in its intent. But at least now there will (hopefully) be no warning. (check-in: [48bb7c88] user: drh branch: trunk, size: 299653)
2023-01-16
20:33
[a0dfc443] part of check-in [906caf89] Another version of the debug-only logging on this branch. (check-in: [906caf89] user: dan branch: schema-version-instr, size: 306047)
2023-01-05
19:48
[0f8ce193] part of check-in [0d908106] One more iteration of "PRAGMA schema_version" instrumentation. (check-in: [0d908106] user: dan branch: schema-version-instr, size: 306120)
2022-12-23
15:05
[093dd630] part of check-in [d5a8d6cf] Another iteration of "PRAGMA schema_version" instrumentation. (check-in: [d5a8d6cf] user: dan branch: schema-version-instr, size: 306421)
2022-12-22
14:29
[2a7d84bc] part of check-in [b9efbc53] Different version of "PRAGMA schema_version" instrumentation. (check-in: [b9efbc53] user: dan branch: schema-version-instr, size: 306117)
2022-12-21
20:43
[291f2b22] part of check-in [bcab19d2] Merge the latest trunk enhancements into the begin-concurrent-pnu-wal2 branch. (check-in: [bcab19d2] user: drh branch: begin-concurrent-pnu-wal2, size: 305655)
20:28
[00bffff4] part of check-in [21ebd4cf] Merge the latest trunk enhancements into the wal2 branch. (check-in: [21ebd4cf] user: drh branch: wal2, size: 300276)
20:17
[134ceaed] part of check-in [397fb07b] Merge the latest trunk enhancements into the begin-concurrent-report branch. (check-in: [397fb07b] user: drh branch: begin-concurrent-report, size: 305258)
20:07
[f0b3fd5a] part of check-in [0c198aee] Update the begin-concurrent branch with the latest enhancements on trunk. (check-in: [0c198aee] user: drh branch: begin-concurrent, size: 305026)
2022-12-19
18:42
[c15d151c] part of check-in [44dd01e3] Hack for special gettimeofday() instrumentation of "PRAGMA schema_version". (check-in: [44dd01e3] user: dan branch: schema-version-instr, size: 305697)
2022-11-19
00:08
[d3122cf6] part of check-in [ff494449] Databases created using sqlite3_deserialize() should report their filename as an empty string, not as "x". Fix for ticket [53043c9793715f08]. (check-in: [ff494449] user: drh branch: trunk, size: 299647)
2022-09-30
14:04
[6d3a93a7] part of check-in [68a61513] Merge the latest trunk enhancements into the begin-concurrent-pnu-wal2 branch. (check-in: [68a61513] user: drh branch: begin-concurrent-pnu-wal2, size: 305591)
13:54
[fb35fb2c] part of check-in [c22c7c87] Merge recent trunk enhancements into the wal2 branch. (check-in: [c22c7c87] user: drh branch: wal2, size: 300212)
13:42
[994f3aeb] part of check-in [4d6141f3] Merge the latest trunk changes into the begin-concurrent-report branch (check-in: [4d6141f3] user: drh branch: begin-concurrent-report, size: 305194)
13:29
[a992a87f] part of check-in [ba2539f6] Merge all recent trunk enhancements into the begin-concurrent branch. (check-in: [ba2539f6] user: drh branch: begin-concurrent, size: 304962)
2022-09-05
12:39
[9ba563d9] part of check-in [31304de8] Version 3.39.3 patches applied to the begin-concurrent branch. (check-in: [31304de8] user: drh branch: begin-concurrent-3.39, size: 304913)
2022-09-02
21:21
[8c3853ca] part of check-in [fe547035] Ensure the Pager.journalOff variable is zeroed if an error occurs while writing the initial header to the journal file. (check-in: [fe547035] user: dan branch: branch-3.39, size: 299534)
21:19
[6176d975] part of check-in [da7af290] Ensure the Pager.journalOff variable is zeroed if an error occurs while writing the initial header to the journal file. (check-in: [da7af290] user: dan branch: trunk, size: 299583)
19:18
[5fb5b09a] part of check-in [85a8a117] Remove a NEVER() that is sometimes true. (check-in: [85a8a117] user: drh branch: branch-3.39, size: 299506)
2022-08-22
16:08
[dcf1fe37] part of check-in [dde76e91] Merge all recent trunk changes into the begin-concurrent-pnu-wal2 branch. (check-in: [dde76e91] user: drh branch: begin-concurrent-pnu-wal2, size: 305563)
15:57
[98402cc0] part of check-in [0b7578bf] Merge all recent trunk enhancements into the wal2 branch. (check-in: [0b7578bf] user: drh branch: wal2, size: 300184)
15:48
[fbd49299] part of check-in [2ec6e9e1] Merge all recent trunk enhancements into the begin-concurrent-report branch. (check-in: [2ec6e9e1] user: drh branch: begin-concurrent-report, size: 305166)
15:42
[4d1b71b5] part of check-in [7eac6136] Merge all recent trunk enhancements into the begin-concurrent branch. (check-in: [7eac6136] user: drh branch: begin-concurrent, size: 304934)
2022-08-16
10:52
[c60031c4] part of check-in [e123da49] Add assert() statements to verify that the SQLITE_OPEN_EXCLUSIVE flag is always passed to the VFS when opening a temporary file. (check-in: [e123da49] user: dan branch: trunk, size: 299555)
2022-07-04
09:41
[a7cad005] part of check-in [a1c090e0] In the getNormalPage() routine of pager.c, consolidate pgno error checking into a single spot for small size reduction and performance increase. (check-in: [a1c090e0] user: drh branch: trunk, size: 299480)
2022-06-28
21:52
[25c13336] part of check-in [77fe7376] Merge latest fixes from begin-concurrent-pnu-wal2 branch. (check-in: [77fe7376] user: dan branch: begin-concurrent-report-wal2, size: 305753)
2022-06-16
13:56
[66cd2ddc] part of check-in [82e7e836] Merge the latest trunk enhancements into the begin-concurrent-pnu-wal2 branch. (check-in: [82e7e836] user: drh branch: begin-concurrent-pnu-wal2, size: 305521)
13:44
[adb8600c] part of check-in [c8ad8699] Merge the latest trunk enhancements into the wal2 branch. (check-in: [c8ad8699] user: drh branch: wal2, size: 300142)
13:44
[abd503a2] part of check-in [8b446d0b] Merge the latest trunk enhancements into the begin-concurrent-report branch. (check-in: [8b446d0b] user: drh branch: begin-concurrent-report, size: 305124)
13:37
[49eab89e] part of check-in [221e07ed] Merge the latest trunk enhancements into the begin-concurrent branch. (check-in: [221e07ed] user: drh branch: begin-concurrent, size: 304892)
2022-06-14
21:34
[74596fc3] part of check-in [6c3266c1] Add missing SQLITE_FCNTL_SIZE_HINT call to a path taken during transaction rollback. (check-in: [6c3266c1] user: dan branch: trunk, size: 299513)
2022-05-09
21:57
[d29c524a] part of check-in [c0135441] Update this branch with latest changes from trunk, and the fts5 fix for "BEGIN CCONCURRENT" transactions. (check-in: [c0135441] user: dan branch: begin-concurrent-report-wal2, size: 305673)
2022-03-26
17:39
[039c50e6] part of check-in [73a15377] Merge the version 3.38.2 patches with the begin-concurrent-pnu-wal2 branch to create this new sub-branch. (check-in: [73a15377] user: drh branch: begin-concurrent-wal2-3.38, size: 305313)
2022-03-12
15:11
[99d9ac7b] part of check-in [0071d9da] Merge the latest trunk changes into the begin-concurrent-pnu-wal2 branch. (check-in: [0071d9da] user: drh branch: begin-concurrent-pnu-wal2, size: 305441)
15:04
[edd204a7] part of check-in [bafaefc6] Merge the lates trunk enhancements into the wal2 branch. (check-in: [bafaefc6] user: drh branch: wal2, size: 300062)
14:54
[d4804a5d] part of check-in [c4a61135] Merge trunk enhancements, including 3.38.1 patches, into the begin-concurrent-report branch. (check-in: [c4a61135] user: drh branch: begin-concurrent-report-3.28, size: 305044)
14:47
[8eca9eaa] part of check-in [aa8b5e95] Merge the latest trunk enhancements, including the 3.38.1 patches plus additional performance enhancements, into the begin-concurrent branch. (check-in: [aa8b5e95] user: drh branch: begin-concurrent, size: 304812)
2022-03-05
19:39
[e4f4c1e0] part of check-in [45a5d5ac] Cherry-pick all bug fix changes since the 3.38.0 release. (check-in: [45a5d5ac] user: drh branch: branch-3.38, size: 299305)
2022-03-02
11:39
[42120492] part of check-in [b218a4b9] The optimization at [ece326db50201937] is not quite right, so back it out for now. (check-in: [b218a4b9] user: drh branch: trunk, size: 299433)
2022-03-01
14:13
[1c415888] part of check-in [12c01216] Increase the max_page_count on ROLLBACK, if necessary, so that it is sufficient to cover the entire database. Fix for the problem identified by forum post 3b9e894312. (check-in: [12c01216] user: drh branch: trunk, size: 299404)
2022-02-23
17:16
[90a3721b] part of check-in [ece326db] Defer the check for error check Pgno zero until after the page fetch misses, to gain a few CPU cycles and a small size reduction. (check-in: [ece326db] user: drh branch: trunk, size: 299332)
17:00
[198e037a] part of check-in [5aa9c3eb] Store the page number for the PENDING_BYTE page in the Pager object, rather than computing the page number every time it is needed, because it turns out that number is needed quite frequently. This saves a few hundred thousand CPU cycles and a few bytes of code space. (check-in: [5aa9c3eb] user: drh branch: trunk, size: 299361)
2022-02-15
20:47
[5522acd0] part of check-in [1336d2f2] Merge the latest trunk enhancements into the begin-concurrent-pnu-wal2 branch. (check-in: [1336d2f2] user: drh branch: begin-concurrent-pnu-wal2, size: 305241)
20:37
[201291cd] part of check-in [7dba8188] Merge recent trunk enhancements into the wal2 branch. (check-in: [7dba8188] user: drh branch: wal2, size: 299862)
20:24
[91b6e493] part of check-in [213df7a0] Merge recent trunk enhancements into the begin-concurrent-report branch. (check-in: [213df7a0] user: drh branch: begin-concurrent-report, size: 304844)
20:18
[99a86030] part of check-in [94838f16] Merge the latest trunk changes into the begin-concurrent branch. (check-in: [94838f16] user: drh branch: begin-concurrent, size: 304612)
2022-02-14
21:11
[cda9e2d1] part of check-in [c039d547] Generalize the in-memory journal so that it is able to accept writes that begin at any offset less than or equal to the current file size. (check-in: [c039d547] user: drh branch: trunk, size: 299233)
2022-02-11
17:33
[66bc54c3] part of check-in [a51402e8] Fix an assert() in the pager by adding "|| CORRUPT_DB", in as much as the assert() is not necessarily true if the database size in the header is wrong. dbsqlfuzz f2f996065b90988aa9b0ae425b66dbb296546a08. (check-in: [a51402e8] user: drh branch: trunk, size: 299543)
2022-02-09
18:47
[0c028c10] part of check-in [eee6de19] When process first moves a database into WAL mode and then tries to run sqlite3_wal_checkpoint() without first performing a transaction, first try to run a synthesized transaction to get the Pager caught up before attemptingn the checkpoint. forum post fd0f19d229156939. (check-in: [eee6de19] user: drh branch: trunk, size: 299529)
2022-02-08
15:14
[29e4d6d8] part of check-in [22cc55e8] Writes to the subjournal should be all-or-nothing. Fix for dbsqlfuzz fe3c397fb90029313446c4e0f4a6cd0c81dd9621. (check-in: [22cc55e8] user: drh branch: trunk, size: 298814)
2022-01-17
19:46
[d27496ff] part of check-in [45fa7efe] Merge the latest trunk enhancements into the begin-concurrent-pnu-wal2 branch. (check-in: [45fa7efe] user: drh branch: begin-concurrent-pnu-wal2, size: 304512)
19:36
[86c44ffb] part of check-in [82f031b4] Merge the latest trunk enhancements into the wal2 branch. (check-in: [82f031b4] user: drh branch: wal2, size: 299133)
19:24
[6da7b16d] part of check-in [ef6fc895] Bring the begin-concurrent-report branch up to date with all the latest trunk enhancements. (check-in: [ef6fc895] user: drh branch: begin-concurrent-report, size: 304115)
19:17
[40b9f952] part of check-in [02daae7a] Merge recent trunk enhancements into the begin-concurrent branch. (check-in: [02daae7a] user: drh branch: begin-concurrent, size: 303883)
14:42
[f6183fb7] part of check-in [0407c879] Never allow the b-tree layers view of the number of pages in the database file exceed the actual number of pages in the database file, even when PRAGMA writeable_schema=ON. This helps with earlier detection of corruption, and prevents excess memory usage and CPU cycles in some integrity_check ops. (check-in: [0407c879] user: drh branch: trunk, size: 298504)
2022-01-08
21:50
[5130bd60] part of check-in [71272caf] Add NEVER() macros to two branches that became unreachable due to [e199a851e316bd47]. (check-in: [71272caf] user: drh branch: trunk, size: 298554)
2022-01-07
14:09
[b862b8f4] part of check-in [e525892d] Merge 3.37.2 changes into the begin-concurrent-pnu branch. (check-in: [e525892d] user: drh branch: begin-concurrent-3.37, size: 303624)
2022-01-02
19:43
[5b79a1c0] part of check-in [71f21f17] Do not open a rollback journal file when the journal_mode is OFF, even if such a file exists on disk. See [forum/forumpost/ec2a102440|forum post ec2a102440] for a description. I so far have been unable to find any harm to come of the problem, other than the assertion fault when in DEBUG mode. (check-in: [71f21f17] user: drh branch: branch-3.37, size: 298245)
19:32
[55a9a8c7] part of check-in [fdf9ed66] Do not open a rollback journal file when the journal_mode is OFF, even if such a file exists on disk. See [forum/forumpost/ec2a102440|forum post ec2a102440] for a description. I so far have been unable to find any harm to come of the problem, other than the assertion fault when in DEBUG mode. (check-in: [fdf9ed66] user: drh branch: trunk, size: 298503)
19:10
[a860d7c8] part of check-in [4bb78ce8] Improve formatting of an assert(). No functional changes. (check-in: [4bb78ce8] user: drh branch: trunk, size: 298457)
2022-01-01
20:02
[dda556cb] part of check-in [1d1fe03c] Fix an assert() in pager.c to avoid the possibility of side-effects. (check-in: [1d1fe03c] user: dan branch: trunk, size: 298391)
19:29
[b0f75fde] part of check-in [73c2b502] Fix an obscure problem with releasing savepoints stored in an in-memory journal that could cause subsequent savepoint rollback to fail. Problem reported by forum post d7338bf4901f1151, PoC #3. The problem appears to have been introduced at [23ca23894af352ea]. (check-in: [73c2b502] user: dan branch: trunk, size: 298199)
2021-11-17
14:21
[92357f95] part of check-in [8eef8782] Apply the begin-concurrent-report patch to the wal2 branch. (check-in: [8eef8782] user: dan branch: begin-concurrent-report-wal2, size: 304426)
2021-11-09
15:36
[78641f57] part of check-in [122f4a76] Merge all recent trunk changes into the begin-concurrent-report branch. (check-in: [122f4a76] user: drh branch: begin-concurrent-report, size: 303810)
15:18
[17e8d78f] part of check-in [07bc1339] Merge all recent trunk enhancements into the begin-concurrent-pnu-wal2 branch. (check-in: [07bc1339] user: drh branch: begin-concurrent-pnu-wal2, size: 304194)
14:36
[90941a31] part of check-in [6603f005] Merge all trunk enhancements prior to the walIndexPage() fix into the begin-concurrent branch. (check-in: [6603f005] user: drh branch: begin-concurrent, size: 303578)
2021-11-06
16:10
[144c2111] part of check-in [52667bce] Merge changes from trunk into this branch. (check-in: [52667bce] user: dan branch: wal2, size: 298815)
2021-10-23
20:32
[bc10c191] part of check-in [967b6562] The pager now remembers when a VFS reports that a database file is SQLITE_OPEN_MEMORY and treats that database as an in-memory database. (check-in: [967b6562] user: drh branch: trunk, size: 298199)
2021-10-21
14:37
[0017d8d4] part of check-in [0770f320] Merge all recent trunk changes into the begin-concurrent-report branch. (check-in: [0770f320] user: drh branch: begin-concurrent-report, size: 303707)
14:24
[bdb6b50e] part of check-in [1958e6fa] Merge trunk enhancements into the begin-concurrent-pnu-wal2 branch. (check-in: [1958e6fa] user: drh branch: begin-concurrent-pnu-wal2, size: 304091)
14:13
[3c8211b7] part of check-in [ae4eed0b] Merge recent trunk enhancements into begin-concurrent branch. (check-in: [ae4eed0b] user: drh branch: begin-concurrent, size: 303475)
14:01
[b84bb738] part of check-in [7e2bc836] Merge recent trunk enhancements into the wal2 branch. (check-in: [7e2bc836] user: drh branch: wal2, size: 298712)
2021-10-16
18:53
[71e31021] part of check-in [5fa272cc] Add NEVER() macros on branches that become unreachable due to the previous check-in. (check-in: [5fa272cc] user: drh branch: trunk, size: 298096)
2021-10-04
13:18
[e20778ee] part of check-in [6604a085] Fix harmless static analyzer warnings. (check-in: [6604a085] user: drh branch: trunk, size: 298089)
12:16
[0cf63912] part of check-in [71b10294] Merge recent trunk changes into the begin-concurrent-report branch. (check-in: [71b10294] user: drh branch: begin-concurrent-report, size: 303670)
12:02
[931ff722] part of check-in [bce02eaa] Merge recent trunk changes into the begin-concurrent-pnu-wal2 branch. (check-in: [bce02eaa] user: drh branch: begin-concurrent-pnu-wal2, size: 304054)
11:54
[f48aa94b] part of check-in [4f5ef7aa] Merge recent trunk enhancements into the begin-concurrent branch. (check-in: [4f5ef7aa] user: drh branch: begin-concurrent, size: 303438)
11:44
[04f021fa] part of check-in [127173e0] Merge recent trunk enhancements into the wal2 branch. (check-in: [127173e0] user: drh branch: wal2, size: 298675)
2021-10-01
21:01
[dabb867a] part of check-in [94b59691] Fix harmless compiler warnings. (check-in: [94b59691] user: drh branch: trunk, size: 298059)
2021-09-15
11:15
[1ba6a843] part of check-in [5540e6ab] Squelch needless narrowing warning. (check-in: [5540e6ab] user: larrybr branch: trunk, size: 297997)
2021-09-13
13:53
[1d22bb90] part of check-in [f4a552ed] Fix an incorrect comment and possible integer overflow in pager resulting from check-in [23ca23894af352ea]. Problem reported by forum post e2ea1a3f61. Also change the datatype of Pager.pageSize to i64 even though page size never exceeds 65536, in order to help prevent future problems of this kind. (check-in: [f4a552ed] user: drh branch: trunk, size: 298023)
2021-09-10
21:28
[555cff0b] part of check-in [fdb20e9e] If an EXCEPTION_IN_PAGE_ERROR exception is caught, make the underlying OS error code available via sqlite3_system_errno(). (check-in: [fdb20e9e] user: dan branch: wal-shm-exceptions, size: 298158)
2021-05-21
17:31
[08f6583f] part of check-in [4efefb59] Merge latest changes from wal2 into this branch. (check-in: [4efefb59] user: dan branch: begin-concurrent-pnu-wal2, size: 304028)
16:42
[e007e483] part of check-in [95cc7783] Merge the latest trunk enhancements into the wal2 branch. (check-in: [95cc7783] user: drh branch: wal2, size: 298649)
16:32
[8302eb7a] part of check-in [1dc6cf51] Merge the latest trunk changes into begin-concurrent-report branch via the begin-concurrent-pnu branch. (check-in: [1dc6cf51] user: drh branch: begin-concurrent-report, size: 303644)
15:33
[12b7e6f0] part of check-in [0dba9010] Merge all recent trunk changes into the begin-concurrent branch. (check-in: [0dba9010] user: drh branch: begin-concurrent, size: 303412)
2021-05-08
17:18
[95c25525] part of check-in [6df3b03e] Enable the sqlite3_serialize() and sqlite3_deserialize() interfaces by default. Omit the SQLITE_ENABLE_DESERIALIZE option and replace it with the SQLITE_OMIT_DESERIALIZE option. (check-in: [6df3b03e] user: drh branch: trunk, size: 298033)
2021-04-08
19:56
[0c84ba22] part of check-in [466f5089] Remove an ALWAYS() that might be false under very unusual circumstances. dbsqlfuzz 300261f469ace7ecc57ed32ea7b0de3ea9d7dbf. Test case in TH3. (check-in: [466f5089] user: drh branch: trunk, size: 298035)
2021-04-07
17:46
[a7ea62b2] part of check-in [655c2841] Merge latest changes into this branch. (check-in: [655c2841] user: dan branch: begin-concurrent-report, size: 303654)
17:32
[3263c28b] part of check-in [1f3f7e4b] Merge latest trunk changes into this branch. (check-in: [1f3f7e4b] user: dan branch: begin-concurrent-pnu, size: 303422)
2021-04-06
13:03
[9c46e887] part of check-in [a0839406] Further improvements (subsequent to [d91450847a3a3a72]) to handling of attempts to delete a journal using the memdb VFS. dbsqlfuzz ac61dab357279a6a531de067f040e9a4828d2df0. (check-in: [a0839406] user: drh branch: trunk, size: 298043)
2021-04-05
17:50
[c1dcb57d] part of check-in [15b80101] Fix an assert() that can be false when doing an incremental vacuum on a corrupt database file. dbsqlfuzz cced0668cfd4da4eb2382cb9dd26c17c64aaff76. (check-in: [15b80101] user: drh branch: trunk, size: 298071)
13:41
[989d552d] part of check-in [d9145084] Do not invoke the xDelete method when converting to PRAGMA journal_mode=OFF if the underlying VFS does not support that method. dbsqlfuzz 39d6af88ef5242f866c4f9b21ede330c5c1e36a8. (check-in: [d9145084] user: drh branch: trunk, size: 298021)
2021-03-11
19:26
[4f0fd96e] part of check-in [6994a2d8] Merge latest changes from begin-concurrent-pnu into this branch. (check-in: [6994a2d8] user: dan branch: begin-concurrent-report, size: 303604)
2021-03-03
19:41
[964ebfc5] part of check-in [b0fc8ca1] Merge in recent enhancements. (check-in: [b0fc8ca1] user: drh branch: begin-concurrent-pnu-wal2, size: 303988)
19:32
[c1d5774f] part of check-in [0ae81039] Merge recent trunk enhancements into the wal2 branch. (check-in: [0ae81039] user: drh branch: wal2, size: 298609)
19:17
[0122015a] part of check-in [acdafef8] Merge recent trunk changes into the begin-concurrent branch. (check-in: [acdafef8] user: drh branch: begin-concurrent, size: 303372)
2021-02-22
15:44
[970691da] part of check-in [e36327fb] When a sub-transaction is released, if no pages required by containing sub-transactions were journaled, truncate the statement journal. This might prevent out-of-control statement journal growth in some cases. (check-in: [e36327fb] user: dan branch: stmt-jrnl-truncate, size: 297993)
2020-11-26
18:41
[d24754ab] part of check-in [b451bb72] Merge latest changes from wal2 branch. (check-in: [b451bb72] user: dan branch: begin-concurrent-pnu-wal2, size: 303622)
18:08
[10d275f5] part of check-in [cb1f6f18] Merge latest trunk changes into this branch. (check-in: [cb1f6f18] user: dan branch: wal2, size: 298243)
17:54
[df2d47fe] part of check-in [d2de81a2] Merge latest changes from begin-concurrent-pnu into this branch. (check-in: [d2de81a2] user: dan branch: begin-concurrent-report, size: 303238)
11:37
[095a0ac0] part of check-in [ddb97eee] Update this branch with latest changes from trunk. (check-in: [ddb97eee] user: dan branch: begin-concurrent, size: 303006)
2020-11-24
17:55
[c49952ac] part of check-in [8a786ce9] Fix a bug in OOM handling code introduced by [6a28713d]. (check-in: [8a786ce9] user: dan branch: trunk, size: 297627)
16:44
[abad0061] part of check-in [6a28713d] Ensure that super-journal and other journal filenames passed by SQLite to an sqlite3_vfs.xOpen() implementation may be safely passed to sqlite3_uri_parameter() and similar functions. (check-in: [6a28713d] user: dan branch: trunk, size: 297635)
2020-11-19
16:08
[aafa89d8] part of check-in [c2426ae8] Fix things so that sqlite3_database_file_object() works with wal2 filenames. (check-in: [c2426ae8] user: dan branch: wal2, size: 297810)
2020-08-11
14:06
[6da497a9] part of check-in [3ee73880] Update this branch with latest from begin-concurrent-pnu. (check-in: [3ee73880] user: dan branch: begin-concurrent-report, size: 302805)
13:22
[96cb7fcd] part of check-in [ebefcb86] Merge all the latest changes into the begin-concurrent-pnu-wal2 branch. (check-in: [ebefcb86] user: drh branch: begin-concurrent-pnu-wal2, size: 303004)
11:34
[35fcb2d9] part of check-in [91262e66] Merge latest trunk changes into this branch. (check-in: [91262e66] user: dan branch: wal2, size: 297625)
2020-08-10
21:16
[3a9503c6] part of check-in [ed4c742c] Merge recent trunk enhancements into begin-concurrent. (check-in: [ed4c742c] user: drh branch: begin-concurrent, size: 302573)
2020-08-09
17:58
[3700a1c5] part of check-in [6f91769f] Fix a harmless compiler warning. (check-in: [6f91769f] user: drh branch: trunk, size: 297194)
2020-08-08
20:15
[9313ca2c] part of check-in [13d2fed7] Fix the check-in at [41474548ef3f7454] so that it computes the pointer in time for error checking at the end of the routine in the case of a non-OOM error. (check-in: [13d2fed7] user: drh branch: trunk, size: 297176)
17:55
[8c337c62] part of check-in [41474548] Move a pointer computation until after OOM checks to avoid a nuisance USAN warning. (check-in: [41474548] user: drh branch: trunk, size: 297174)
2020-07-31
17:08
[9a4fb08e] part of check-in [ebd39665] Merge latest wal2 changes into this branch. (check-in: [ebd39665] user: dan branch: begin-concurrent-pnu-wal2, size: 302984)
16:01
[9bf6108c] part of check-in [0c0d0a77] Merge latest trunk changes into this branch. (check-in: [0c0d0a77] user: dan branch: wal2, size: 297605)
2020-07-30
19:56
[35132c7f] part of check-in [fd01e788] Merge begin-concurrent-pnu changes into this branch. (check-in: [fd01e788] user: dan branch: begin-concurrent-report, size: 302785)
19:19
[a6b0ecde] part of check-in [e8a66515] Merge latest trunk changes into this branch. (check-in: [e8a66515] user: dan branch: begin-concurrent, size: 302553)
2020-07-29
16:18
[ce17d6a1] part of check-in [a80ae2c9] Dozens and dozens of typo fixes in comments. This change adds no value to the end product and is disruptive, so it is questionable whether or not it will ever land on trunk. (check-in: [a80ae2c9] user: drh branch: typos, size: 297297)
2020-07-22
13:38
[a5f65ff2] part of check-in [9ce1710a] Continuing work toward supporting unsigned 32-bit page numbers. (check-in: [9ce1710a] user: drh branch: larger-databases, size: 297174)
2020-07-20
12:47
[602b664e] part of check-in [9cb7da9b] Initial changes to allow database up to 281TB in size. (check-in: [9cb7da9b] user: drh branch: larger-databases, size: 297298)
2020-07-17
11:07
[f56d8456] part of check-in [12a909fb] Bring this branch up to date with begin-concurrent-pnu. (check-in: [12a909fb] user: dan branch: begin-concurrent-report, size: 303123)
2020-06-19
15:24
[c8f76f8e] part of check-in [7a876209] Extend the refactoring into extensions. Clean up stray newlines. (check-in: [7a876209] user: drh branch: trunk, size: 297296)
11:34
[7d6cff7a] part of check-in [7bb08b1b] Refactoring various names. No changes in the resulting machine code. (check-in: [7bb08b1b] user: drh branch: trunk, size: 297510)
2020-05-18
19:55
[a294b736] part of check-in [5dc355cc] Merge latest trunk changes into this branch. (check-in: [5dc355cc] user: dan branch: begin-concurrent-pnu-wal2, size: 303323)
17:18
[56836890] part of check-in [16b1eca9] Merge latest trunk changes into this branch. (check-in: [16b1eca9] user: dan branch: wal2, size: 297944)
16:19
[6f559d65] part of check-in [c69f030b] Merge recent changes from trunk. (check-in: [c69f030b] user: drh branch: begin-concurrent-pnu, size: 302891)
15:41
[779602d1] part of check-in [9e4a7b3e] Merge latest trunk changes into this branch. (check-in: [9e4a7b3e] user: dan branch: begin-concurrent, size: 302892)
2020-05-06
19:14
[96436cb1] part of check-in [105d6c9b] Block on the WRITER lock when attempting to run recovery. (check-in: [105d6c9b] user: dan branch: setlk-deadlock-changes, size: 297513)
2020-05-05
20:30
[be4d6d58] part of check-in [d6f819a9] Unless upgrading an existing read transaction, have ENABLE_SETLK_TIMEOUT builds attempt to use a blocking lock when opening a write transaction on a wal mode database. (check-in: [d6f819a9] user: dan branch: setlk-deadlock-changes, size: 297322)
2020-05-04
19:42
[8b5a3b3d] part of check-in [553423c2] Changes to avoid deadlock in SQLITE_ENABLE_SETLK_TIMEOUT builds. (check-in: [553423c2] user: dan branch: setlk-deadlock-changes, size: 296756)
2020-04-24
18:20
[52cee2f7] part of check-in [b4987a5c] The new sqlite3_database_file_object() interface requires that the pager never invoke xOpen with SQLITE_OPEN_MAIN_JOURNAL unless it is using a pointer to the journal name found in the Pager structure itself. Make this the case when processing a master-journal. (check-in: [b4987a5c] user: drh branch: trunk, size: 297029)
2020-04-21
01:06
[29ee0618] part of check-in [ae697b15] Experimental API: sqlite3_database_file_object(). (check-in: [ae697b15] user: drh branch: sqlite3_database_file_object, size: 296839)
2020-04-09
19:00
[d6987e8b] part of check-in [6c11b67b] Merge recent trunk changes into begin-concurrent-pnu-wal2. (check-in: [6c11b67b] user: drh branch: begin-concurrent-pnu-wal2, size: 302066)
18:51
[08200127] part of check-in [d6fda470] Merge recent trunk changes into the apple-osx branch. (check-in: [d6fda470] user: drh branch: apple-osx, size: 297810)
18:46
[f9e65a8d] part of check-in [6fb87062] Merge recent trunk enhancements into the wal2 branch. (check-in: [6fb87062] user: drh branch: wal2, size: 296687)
18:44
[025511c3] part of check-in [cedd138c] Merge recent trunk enhancements into the begin-concurrent-pnu branch. (check-in: [cedd138c] user: drh branch: begin-concurrent-pnu, size: 301634)
18:29
[5539fc97] part of check-in [92f71a88] Merge recent trunk enhancements into the begin-concurrent branch. (check-in: [92f71a88] user: drh branch: begin-concurrent, size: 301635)
2020-03-10
21:14
[88694433] part of check-in [9ae970fd] Fix test and other problems with reporting pages read and written. (check-in: [9ae970fd] user: dan branch: begin-concurrent-report, size: 305913)
2020-03-09
21:00
[720ebc58] part of check-in [b661ccc8] Report on pages, as well as keys, read and written by BEGIN CONCURRENT transactions. (check-in: [b661ccc8] user: dan branch: begin-concurrent-report, size: 305802)
2020-02-27
16:21
[a71ffd14] part of check-in [951b39ca] Fix harmless compiler warnings from MSVC. (check-in: [951b39ca] user: drh branch: trunk, size: 296256)
13:54
[5bae6544] part of check-in [63e533d2] Extra zero terminators on the end of the blank filename returned by sqlite3PagerFilename() for an in-memory database. This helps the result work better with sqlite3_filename_journal() and similar functions. (check-in: [63e533d2] user: drh branch: trunk, size: 296265)
2020-02-18
19:49
[f1c92d05] part of check-in [9469f36a] Add the new sqlite3_create_filename() and sqlite3_free_filename() interfaces for use by Shims. Use these interfaces inside the multiplexor. (check-in: [9469f36a] user: drh branch: trunk, size: 296267)
2020-02-07
01:12
[b1e79698] part of check-in [5a877221] Simplify the code by removing the unsupported and undocumented SQLITE_HAS_CODEC compile-time option (check-in: [5a877221] user: drh branch: trunk, size: 295973)
2020-02-04
20:22
[c191c07b] part of check-in [76668b55] Merge latest trunk/wal2 changes, including the SQLITE_ENABLE_CORRUPT_PGNO patch, with this branch. (check-in: [76668b55] user: dan branch: begin-concurrent-pnu-wal2, size: 306113)
20:11
[179e6c0a] part of check-in [6ad4d6b7] Merge latest trunk changes into this branch. (check-in: [6ad4d6b7] user: dan branch: wal2, size: 300734)
20:09
[79bfca04] part of check-in [23bc80cc] Merge latest trunk changes, including the SQLITE_ENABLE_CORRUPT_PGNO patch, into this branch. (check-in: [23bc80cc] user: dan branch: begin-concurrent-pnu, size: 305681)
20:08
[f8e37186] part of check-in [f253618a] Merge latest trunk changes, including the SQLITE_ENABLE_CORRUPT_PGNO patch, into this branch. (check-in: [f253618a] user: dan branch: begin-concurrent, size: 305682)
2020-02-01
00:08
[bbb917ee] part of check-in [d250d085] Merge version 3.31.1 (check-in: [d250d085] user: numist branch: apple-osx, size: 301857)
2020-01-27
14:40
[c0bca72a] part of check-in [34ab7606] Revise the layout of filenames in the Pager object so that it is unchanged from prior versions. It turns out that some important 3rd-party software does questionable pointer manipulations on those filenames that depend on that legacy layout. Technically, this is a misuse of SQLite by the 3rd-party software, but we want to avoid unnecessary breakage. (check-in: [34ab7606] user: drh branch: trunk, size: 300303)
2020-01-22
21:18
[032d0f32] part of check-in [9c3f4638] Merge version 3.31.0 (check-in: [9c3f4638] user: drh branch: begin-concurrent-pnu-wal2, size: 305611)
21:12
[17ea5d09] part of check-in [3bb267de] Merge version 3.31.0 (check-in: [3bb267de] user: drh branch: wal2, size: 300232)
21:06
[357bb131] part of check-in [e65e6c01] Merge version 3.31.0 (check-in: [e65e6c01] user: drh branch: begin-concurrent-pnu, size: 305179)
20:56
[b3fd772a] part of check-in [bbbc2881] Merge version 3.31.0 (check-in: [bbbc2881] user: drh branch: begin-concurrent, size: 305180)
20:36
[4c74d95c] part of check-in [0eae87ad] Merge version 3.31.0 (check-in: [0eae87ad] user: drh branch: apple-osx, size: 301355)
2020-01-18
19:46
[302a18da] part of check-in [cca43778] Do not use memcpy() of zero bytes when initializing a pager. This avoids a warning. (check-in: [cca43778] user: drh branch: trunk, size: 299801)
14:50
[40d3aa2c] part of check-in [fee94567] Add extra front margin to the fake empty filename returned by sqlite3PagerFilename() for an in-memory or TEMP database. (check-in: [fee94567] user: drh branch: trunk, size: 299770)
2020-01-15
14:21
[fd22081b] part of check-in [350627f3] Merge in the latest trunk changes via the begin-concurrent-pnu branch. (check-in: [350627f3] user: drh branch: begin-concurrent-pnu-wal2, size: 305574)
14:11
[fda3600e] part of check-in [35eae71a] Merge recent enhancements and fixes from trunk. (check-in: [35eae71a] user: drh branch: wal2, size: 300195)
13:48
[1696cc20] part of check-in [110a081f] Merge all recent enhancements and fixes from trunk. (check-in: [110a081f] user: drh branch: begin-concurrent-pnu, size: 305142)
13:34
[c151e651] part of check-in [95ba2f50] Merge fixes and enhancements from trunk into begin-concurrent. (check-in: [95ba2f50] user: drh branch: begin-concurrent, size: 305143)
12:49
[a54c5441] part of check-in [dadedf41] Merge all recent enhancements and fixes from trunk into the apple-osx branch. (check-in: [dadedf41] user: drh branch: apple-osx, size: 301318)
2020-01-11
16:08
[52a2923e] part of check-in [bcb43d11] Redesign for better legacy compatibility. Add the sqlite3_uri_key() interface. (check-in: [bcb43d11] user: drh branch: enhanced-uri, size: 299764)
2020-01-10
18:05
[14ae8110] part of check-in [2ae77bd2] Rearchitect the way in which filenames are stored in the Pager object so that the sqlite3_uri_parameter() interface will work from journal and WAL filenames too. This check-in implements the central idea, and compile and runs somewhat, but crashes on an extended test. (check-in: [2ae77bd2] user: drh branch: enhanced-uri, size: 300659)
2019-12-27
01:50
[b0854101] part of check-in [846b1de6] Ensure that the Pager.changeCountDone flag is cleared whenever dropping the write lock, even when transitioning from EXCLUSIVE locking mode into NORMAL locking mode while in WAL mode. Ticket [fb3b3024ea238d5c]. (check-in: [846b1de6] user: drh branch: trunk, size: 298376)
2019-12-22
14:29
[7e371809] part of check-in [45748e2d] Fix "PRAGMA data_version" so that it works the same way with locking_mode=PERSIST and journal_mode=PERSIST configured. Fix for 7a458c2a5f. (check-in: [45748e2d] user: dan branch: trunk, size: 298366)
2019-12-20
20:03
[d8909ace] part of check-in [0b9d8a12] Fix a bad interaction between RBU and [df51ae19]. (check-in: [0b9d8a12] user: dan branch: trunk, size: 298366)
2019-11-22
00:42
[30f20d22] part of check-in [6a64fb6a] Revise the SQLITE_OPEN_NOFOLLOW so that it actually uses O_NOFOLLOW in the open() system call. This backs out the SQLITE_ACCESS_SYMLINK value but adds the new SQLITE_OK_SYMLINK return code from the xFullPathname method of sqlite3_vfs when that routine resolves symbolic links. O_NOFOLLOW is always included in open() system calls for journal files. (check-in: [6a64fb6a] user: drh branch: trunk, size: 298366)
2019-11-18
22:34
[49630bdb] part of check-in [251230cf] Ensure all file names passed to the VFS layer are double-zero terminated. (check-in: [251230cf] user: mistachkin branch: trunk, size: 298403)
18:43
[29eed7c3] part of check-in [2e98b42f] In the SQLITE_OPEN_NOFOLLOW processing, distinguish between an I/O error on the xAccess() call and an actual symlink encounter. (check-in: [2e98b42f] user: drh branch: trunk, size: 298338)
17:46
[46a775fa] part of check-in [cb79c828] Add support for SQLITE_OPEN_NOFOLLOW. (check-in: [cb79c828] user: drh branch: trunk, size: 298317)
2019-11-12
16:21
[f975b274] part of check-in [f84a1539] For for the previous check-in: Always enable the nUri variable, even when debugging is turned off. (check-in: [f84a1539] user: drh branch: trunk, size: 298089)
14:43
[122d1e3e] part of check-in [df51ae19] Ensure that the main filename and the journal filenames in the pager object are all correctly double-zero terminated. (check-in: [df51ae19] user: drh branch: trunk, size: 298143)
2019-03-26
13:28
[da57d6cd] part of check-in [6433d366] Bring this branch into closer alignment with begin-concurrent. (check-in: [6433d366] user: drh branch: begin-concurrent-pnu, size: 303251)
12:07
[210fdaa3] part of check-in [774d0d52] Merge recent enhancements from trunk. (check-in: [774d0d52] user: drh branch: begin-concurrent, size: 303252)
2019-03-19
20:48
[17ac3113] part of check-in [000f4398] Merge recent enhancements from trunk. (check-in: [000f4398] user: drh branch: apple-osx, size: 299427)
2019-03-08
16:06
[9b9e64c4] part of check-in [543ecb30] Merge the latest enhancements and fixes from trunk. (check-in: [543ecb30] user: drh branch: begin-concurrent-pnu-wal2, size: 303683)
15:57
[3469df53] part of check-in [bf20d4ff] Merge the latest enhancements and fixes from trunk. (check-in: [bf20d4ff] user: drh branch: wal2, size: 298304)
15:30
[56e62482] part of check-in [667cce3d] Merge all the latest enhancements from trunk. (check-in: [667cce3d] user: drh branch: begin-concurrent-pnu, size: 303170)
2019-03-06
14:08
[422fd8cf] part of check-in [b0d5cf40] Add an "|| CORRUPT_DB" term to an assert() that might be false if the database is corrupt. Also add a branch to have sqlite3PagerMovepage() return SQLITE_CORRUPT in that case. (check-in: [b0d5cf40] user: drh branch: trunk, size: 297873)
2019-03-02
15:25
[5ff85a1d] part of check-in [fd085e92] Fix the SQLITE_DIRECT_OVERFLOW_READ compile-time option so that it works with SQLITE_HAS_CODEC. (check-in: [fd085e92] user: drh branch: trunk, size: 297753)
2019-03-01
18:27
[cfa8292f] part of check-in [e64ded7b] Merge the latest enhancements from trunk. (check-in: [e64ded7b] user: drh branch: apple-osx, size: 299240)
2019-02-26
17:49
[5420ef6e] part of check-in [e7aca071] Allocate a few extra bytes for the pager temp page as an overrun buffer while processing corrupt database files. (check-in: [e7aca071] user: drh branch: trunk, size: 297686)
2019-02-20
13:23
[62f5a8fb] part of check-in [be71d1e2] Merge the latest performance enhancements and fixes from trunk. (check-in: [be71d1e2] user: drh branch: apple-osx, size: 299022)
2019-02-11
11:04
[38022624] part of check-in [4a4952d3] Avoid using a "return void_function();" statement in void function sqlite3WalSnapshotUnlock(). It provokes a warning from some compilers. (check-in: [4a4952d3] user: dan branch: trunk, size: 297468)
2019-01-29
19:17
[93757b9c] part of check-in [31efcc37] Merge enhancements from trunk. (check-in: [31efcc37] user: drh branch: apple-osx, size: 299029)
2019-01-19
15:27
[857dde3e] part of check-in [7cd56cad] Remove a broken assert() triggered by a "PRAGMA max_page_count = N" invocation, where N is larger than the number of pages in the database image, but smaller than the number of pages in the database file. (check-in: [7cd56cad] user: dan branch: trunk, size: 297475)
2018-12-29
20:47
[24dbb25d] part of check-in [1625887c] Merge latest begin-concurrent changes with this branch. (check-in: [1625887c] user: dan branch: begin-concurrent-wal2, size: 303086)
20:42
[94e8c52c] part of check-in [48ca30f9] Fix a problem causing a corrupt pager-cache if an OOM or IO error was encountered while committing a concurrent transacation. (check-in: [48ca30f9] user: dan branch: begin-concurrent, size: 302655)
2018-12-05
17:20
[bd11bf69] part of check-in [bf309107] Fix a problem causing "PRAGMA journal_mode" to report the wrong journal mode (wal instead of wal2) under some circumstances. (check-in: [bf309107] user: dan branch: begin-concurrent-wal2, size: 303004)
17:14
[dc6d0acb] part of check-in [1d8d4f68] Fix a problem causing "PRAGMA journal_mode" to report the wrong journal mode (wal instead of wal2) under some circumstances. (check-in: [1d8d4f68] user: dan branch: wal2, size: 297707)
2018-12-03
20:49
[224f8ad6] part of check-in [b7281a1c] Merge the wal2 and begin-concurrent code. Both features work, but not at the same time. (check-in: [b7281a1c] user: dan branch: begin-concurrent-wal2, size: 302823)
18:15
[79b8ced4] part of check-in [f0ddb358] Bring up to date with version 3.26.0. (check-in: [f0ddb358] user: drh branch: begin-concurrent, size: 302573)
2018-12-01
20:14
[dd88ccf7] part of check-in [7a44fa5a] Sync this branch with the latest trunk. (check-in: [7a44fa5a] user: dan branch: wal2, size: 297526)
2018-11-30
18:22
[9e977cf7] part of check-in [2c76ce4f] Merge the pre-3.26.0 fixes from trunk. (check-in: [2c76ce4f] user: drh branch: apple-osx, size: 298830)
2018-11-28
11:09
[75e0f3cf] part of check-in [5c040fdb] Follow-up to [0bf0fd242b93c3bd30]: only reset the pager when adding a new codec, not when overwriting an existing codec. Also, improve a comment in the pcache1 subsystem. (check-in: [5c040fdb] user: drh branch: trunk, size: 297276)
2018-11-27
14:41
[d2674124] part of check-in [4331b499] Remove the sqlite3PagerUseWal() routine which was made obsolete by the [81629ba91475938b6ad] change. (check-in: [4331b499] user: drh branch: trunk, size: 297256)
2018-11-26
23:35
[cb92410e] part of check-in [e8c20a88] Merge recent enhancements from trunk. (check-in: [e8c20a88] user: drh branch: apple-osx, size: 299223)
07:21
[0d44fbfa] part of check-in [28a615a2] Merge latest trunk changes into this branch. (check-in: [28a615a2] user: dan branch: begin-concurrent, size: 302966)
2018-11-22
19:10
[ff1757f5] part of check-in [81629ba9] Fix a problem reading from temp databases in SQLITE_DIRECT_OVERFLOW_READ builds. (check-in: [81629ba9] user: dan branch: trunk, size: 297669)
2018-10-11
17:05
[49ec5cab] part of check-in [f9fa58e1] Merge compiler warning fixes and the codec enhancement from trunk. (check-in: [f9fa58e1] user: drh branch: apple-osx, size: 298558)
16:38
[f803ffcd] part of check-in [0bf0fd24] Always reset the pager before changing the codec. (check-in: [0bf0fd24] user: drh branch: trunk, size: 297004)
2018-10-09
22:50
[1c08e519] part of check-in [ddf6a54e] Merge changes for the 3.25.0 release. (check-in: [ddf6a54e] user: drh branch: apple-osx, size: 298535)
2018-09-28
20:58
[656b7561] part of check-in [86750c92] Merge latest trunk into this branch. (check-in: [86750c92] user: dan branch: begin-concurrent, size: 302278)
2018-09-27
14:24
[09621e99] part of check-in [64db614e] Minor enhancement to the pager so that it remembers if the underlying database files is immutable. (check-in: [64db614e] user: drh branch: immutable-pager, size: 297341)
2018-08-30
18:53
[a0d8f686] part of check-in [ff4dc082] Give the debugging routine print_pager_stats() external linkage in order to suppress harmless compiler and TSAN warnings. (check-in: [ff4dc082] user: drh branch: trunk, size: 296981)
2018-08-06
17:12
[705de01d] part of check-in [051ac015] Allow sqlite3_snapshot_open() to be called to change the snapshot after a read transaction is already open on database. (check-in: [051ac015] user: dan branch: exp-snapshot-open, size: 297004)
2018-07-19
15:27
[76d29b8a] part of check-in [271b8980] Avoid a branch in the commit logic that is unreachable when compiled without SQLITE_ENABLE_BATCH_ATOMIC_WRITE. (check-in: [271b8980] user: drh branch: trunk, size: 295979)
2018-07-18
19:09
[29c48653] part of check-in [a5087c5c] Add the SQLITE_FCNTL_DATA_VERSION file control (check-in: [a5087c5c] user: drh branch: trunk, size: 295957)
17:37
[c4269e34] part of check-in [4c70ea5b] Fix a harmless compiler warning in the pager. Enhance the docs for sqlite3_changes() and sqlite3_total_changes() to refer to the data_version pragma. (check-in: [4c70ea5b] user: drh branch: trunk, size: 295996)
2018-07-17
13:55
[84996f4f] part of check-in [b10ec14e] Fix for builds without SQLITE_ENABLE_BATCH_ATOMIC_WRITE. (check-in: [b10ec14e] user: dan branch: exp-retry-atomic-commit, size: 295992)
2018-07-14
20:25
[26959078] part of check-in [1c41250f] If an SQLITE_IOERR error is encountered as part of an atomic commit on an F2FS file-system, retry the commit in legacy journal mode. (check-in: [1c41250f] user: dan branch: exp-retry-atomic-commit, size: 295906)
2018-04-24
19:21
[5feea9c9] part of check-in [b27bd799] Merge latest trunk changes into this branch. (check-in: [b27bd799] user: dan branch: begin-concurrent, size: 300987)
2018-04-10
18:05
[a6f2fcf9] part of check-in [e20fcb51] Merge all version 3.23.1 changes and enhancements from trunk. (check-in: [e20fcb51] user: drh branch: apple-osx, size: 297244)
2018-03-29
13:47
[1bb6a57f] part of check-in [1fc72b70] Modify the sqlite3OsFileControl() interface to detect unopened sqlite3_file objects and return SQLITE_NOTFOUND. (check-in: [1fc72b70] user: drh branch: trunk, size: 295690)
2018-03-28
15:41
[b99ae56c] part of check-in [df52e89f] Update this branch with latest trunk changes. (check-in: [df52e89f] user: dan branch: server-process-edition, size: 301635)
2018-03-26
20:43
[8f2611ef] part of check-in [b8196056] Avoid a race condition that might cause a busy_timeout to last longer than it should. (check-in: [b8196056] user: drh branch: lowlevel-lock-timeout, size: 295858)
16:37
[941cba7d] part of check-in [6c40c557] Refactor some internal object element names used by the busy handler, to simplify analysis. (check-in: [6c40c557] user: drh branch: trunk, size: 295522)
2018-03-20
13:52
[e9b4176a] part of check-in [b0c2f760] Merge all recent enhancements from trunk. (check-in: [b0c2f760] user: drh branch: begin-concurrent, size: 300819)
2018-03-14
17:17
[100dda22] part of check-in [a658f80c] Merge the latest enhancements from trunk. (check-in: [a658f80c] user: drh branch: apple-osx, size: 297076)
14:53
[3e3b659b] part of check-in [3faeb851] Add the SQLITE_DBSTATUS_CACHE_SPILL option to sqlite3_db_status() (check-in: [3faeb851] user: drh branch: dbstatus-cache-spill, size: 295522)
2018-03-06
21:43
[aa764a01] part of check-in [f07e97ae] Improved documentation for sqlite3_serialize() and sqlite3_deserialize(). Change the name of the compile-time option to enable these interfaces from SQLITE_ENABLE_MEMDB to SQLITE_ENABLE_DESERIALIZE. (check-in: [f07e97ae] user: drh branch: memdb, size: 295228)
2018-03-02
17:40
[fa0c6d8c] part of check-in [36801eff] Merge latest trunk changes into this branch. (check-in: [36801eff] user: dan branch: begin-concurrent, size: 300315)
2018-03-01
13:44
[0dc92667] part of check-in [c8083de1] Merge the latest enhancements from trunk. (check-in: [c8083de1] user: drh branch: memdb, size: 295125)
2018-02-07
18:45
[0b6bd544] part of check-in [468a389c] Fix typo in comment. Skip tests added by check-in [4761db83b6] when running on Windows. (check-in: [468a389c] user: mistachkin branch: trunk, size: 295018)
16:14
[a3834a40] part of check-in [4761db83] When the final connection disconnects from a wal mode database, check that the database file has not been moved or unlinked before deleting the wal and shm files. (check-in: [4761db83] user: dan branch: trunk, size: 295017)
2018-02-02
08:14
[8b45b866] part of check-in [22a228ed] In SQLITE_ENABLE_BATCH_ATOMIC_WRITE builds on F2FS file-systems, invoke SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE if an SQLITE_FCNTL_COMMIT_ATOMIC_WRITE call fails. Also, do not use an atomic transaction to create the initial database. This is because if an error occurs while writing to the db file, any changes to the file-size do not seem to be rolled back automatically. The only time this matters is when the file was 0 bytes in size to start with. Cherrypick of [b3122db154]. (check-in: [22a228ed] user: dan branch: branch-3.19, size: 294009)
2018-01-24
15:02
[20e9757e] part of check-in [6ef3de81] Merge changes from trunk. (check-in: [6ef3de81] user: drh branch: memdb, size: 295032)
2018-01-23
14:01
[cd194a87] part of check-in [b3122db1] In SQLITE_ENABLE_BATCH_ATOMIC_WRITE builds on F2FS file-systems, invoke SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE if an SQLITE_FCNTL_COMMIT_ATOMIC_WRITE call fails. Also, do not use an atomic transaction to create the initial database. This is because if an error occurs while writing to the db file, any changes to the file-size do not seem to be rolled back automatically. The only time this matters is when the file was 0 bytes in size to start with. (check-in: [b3122db1] user: dan branch: trunk, size: 294925)
2018-01-15
21:59
[ab8efd8b] part of check-in [c9d2ec51] Merge the enhancements associated with the first 3.22.0 beta. (check-in: [c9d2ec51] user: drh branch: apple-osx, size: 296429)
2018-01-03
01:28
[ede1e65f] part of check-in [fb2ac2d2] Add support for the "memdb" VFS and the sqlite3_memdb_ptr() and sqlite3_memdb_config() interfaces, to enable an SQLite database to be manipulated as an in-memory object. (check-in: [fb2ac2d2] user: drh branch: memdb, size: 294982)
2018-01-02
21:29
[9b9cb4e0] part of check-in [e115f258] Fix code indentation. No logic changes. (check-in: [e115f258] user: drh branch: trunk, size: 294875)
2017-11-06
20:02
[a98e9760] part of check-in [7f217eda] Merge latest trunk changes into this branch. (check-in: [7f217eda] user: dan branch: begin-concurrent, size: 300171)
2017-10-24
19:12
[fb3cd08a] part of check-in [13be3a44] Merge all enhancements and fixes from the 3.21.0 release. (check-in: [13be3a44] user: drh branch: apple-osx, size: 296428)
2017-10-12
14:18
[07cf8502] part of check-in [de20133d] Fix a harmless compiler warning about an unused parameter. (check-in: [de20133d] user: drh branch: branch-3.21, size: 294874)
2017-10-06
14:25
[811c1a1e] part of check-in [7e435178] Merge latest trunk changes into this branch. (check-in: [7e435178] user: dan branch: wal2, size: 295090)
2017-10-05
20:02
[62f88892] part of check-in [373b0ace] Fix a problem building with SQLITE_OMIT_WAL defined. (check-in: [373b0ace] user: dan branch: trunk, size: 294840)
2017-10-04
20:57
[bc2d2b67] part of check-in [e2fc5c81] Add experimental mode that uses two wal files. Activated using "PRAGMA journal_mode = wal2". (check-in: [e2fc5c81] user: dan branch: wal2, size: 295055)
2017-09-22
10:49
[84e90e0a] part of check-in [307b802e] Merge latest trunk changes into this branch. (check-in: [307b802e] user: dan branch: begin-concurrent, size: 300102)
2017-09-18
09:40
[2aa56a99] part of check-in [74f399d8] The out-of-bounds read on recovery fix of check-in [378afa16381a222a] caused problems for some corner-case error conditions. This alternative fix appears to work better. (check-in: [74f399d8] user: drh branch: trunk, size: 294805)
2017-09-14
02:36
[2a523bf8] part of check-in [378afa16] Avoid an out-of-bounds read on a recovery attempt using a carefully crafted database and rollback journal with mismatched page sizes. The test case for this is in TH3. (check-in: [378afa16] user: drh branch: trunk, size: 294763)
2017-09-09
06:10
[f9319b40] part of check-in [6a0b9d9d] Merge trunk enhancements (check-in: [6a0b9d9d] user: drh branch: apple-osx, size: 296230)
2017-09-07
09:56
[967168bb] part of check-in [02828d71] Prevent a possible crash when trying to recover using a carefully corrupted \ and truncated rollback journal. (Test case in TH3) (check-in: [02828d71] user: drh branch: trunk, size: 294676)
2017-09-01
14:50
[3936b32a] part of check-in [b2e2100c] Add the new sqlite3PagerUnrefPageOne() pager method to deal with the special case of unreferencing page1. (check-in: [b2e2100c] user: drh branch: trunk, size: 294659)
2017-08-28
17:19
[94a8f8f5] part of check-in [d53108e7] Merge recent enhancements from trunk. (check-in: [d53108e7] user: drh branch: begin-concurrent, size: 299203)
2017-08-25
01:14
[bf51378c] part of check-in [bf65dae8] Update the mechanism used to keep track of what kind of syncing to do for WAL transaction commits and checkpoint operations. Use the checkpoint-style of syncing to sync the header of a new or restarted WAL file. (check-in: [bf65dae8] user: drh branch: wal-sync-refactor, size: 293906)
2017-08-19
15:50
[4e8dc5bf] part of check-in [2dd36ade] Ensure that write-locks on pages are dropped at the end of each write transaction, even if there is still a read transaction open. (check-in: [2dd36ade] user: dan branch: server-process-edition, size: 299568)
2017-08-18
22:30
[c1dc0609] part of check-in [745bc8de] Another size and performance optimization to readDbPage(). This time we eliminate some unnecessary local variables. (check-in: [745bc8de] user: drh branch: trunk, size: 293523)
21:14
[fb9a8f40] part of check-in [ca9e1875] Size and performance optimization the readDbPage() routine in the pager. (check-in: [ca9e1875] user: drh branch: trunk, size: 293589)
2017-08-16
16:52
[e53f35d6] part of check-in [04e0cb57] Enhance this branch to support page-level-locking (without MVCC) for multi-process deployments. (check-in: [04e0cb57] user: dan branch: server-process-edition, size: 299577)
2017-08-14
07:16
[0cfac255] part of check-in [8e1b28ed] Remove code for PLL support in wal mode from this branch. (check-in: [8e1b28ed] user: dan branch: server-process-edition, size: 299375)
06:55
[f2d2af4f] part of check-in [bc2498d6] Update this branch with latest trunk changes. (check-in: [bc2498d6] user: dan branch: server-process-edition, size: 299466)
2017-08-11
20:22
[fac516ae] part of check-in [11054cf5] Add another PAGERTRACE() macro to show when pages are added to Pager.pAllRead. No impact on production builds. (check-in: [11054cf5] user: drh branch: begin-concurrent, size: 299219)
19:31
[7fbee7d7] part of check-in [39f39e3d] Add a PAGERTRACE() macro to log when frames are written into the WAL file. This is for analysis only and is a no-op for production builds. (check-in: [39f39e3d] user: drh branch: begin-concurrent, size: 299176)
19:16
[399d8d5f] part of check-in [47e71695] Merge the latest enhancements from trunk. (check-in: [47e71695] user: drh branch: begin-concurrent, size: 299054)
18:59
[6f2ae58c] part of check-in [831156a4] Fix compiler warnings that arise if the PAGERTRACE macro is turned on. This changes does not affect production builds. (check-in: [831156a4] user: drh branch: trunk, size: 293813)
2017-08-07
14:15
[c6efa846] part of check-in [17bc7ded] Update this branch with latest trunk changes. (check-in: [17bc7ded] user: dan branch: server-process-edition, size: 299440)
14:06
[d03c6343] part of check-in [355c594e] Fix a bug on this branch involving mmap mode and readonly transactions. (check-in: [355c594e] user: dan branch: server-process-edition, size: 297453)
2017-07-29
17:01
[9c2006fb] part of check-in [8299bdb7] Update test program "tserver" to use a native pthreads mutex/condition variable to efficiently manage wal file checkpoints without the wal file growing indefinitely. (check-in: [8299bdb7] user: dan branch: server-process-edition, size: 297338)
2017-07-28
21:02
[d3a15bf7] part of check-in [60953997] Reduce the number of mallocs required of writers in server mode. (check-in: [60953997] user: dan branch: server-process-edition, size: 297413)
02:02
[930dace8] part of check-in [def55027] Backport of all batch-atomic-write changes through check-in [67bad7fb9b] (check-in: [def55027] user: drh branch: batch-atomic-write-3.19, size: 293959)
2017-07-24
19:23
[bd64887f] part of check-in [e77d29f6] Only open a db in server-mode if there is a directory named "db-journal" in the file-system and the VFS is an exclusive locking VFS. (check-in: [e77d29f6] user: dan branch: server-process-edition, size: 297339)
2017-07-22
16:32
[1e63b029] part of check-in [2e80e19e] Keep batch-atomic-writes turned on for journal_mode=MEMORY, but turn them off for synchronous=OFF. Refuse to compile with both SQLITE_MMAP_READWRITE and SQLITE_ENABLE_BATCH_ATOMIC_WRITE. Fix up some comments in the commit logic. (check-in: [2e80e19e] user: drh branch: batch-atomic-write, size: 293787)
16:00
[5e5e39f1] part of check-in [a89b62c4] Omit unused batch-atomic-write code if SQLITE_ENABLE_BATCH_ATOMIC_WRITE is not defined. (check-in: [a89b62c4] user: drh branch: batch-atomic-write, size: 293632)
2017-07-20
21:00
[a4270498] part of check-in [7eb9bf2c] Split SQLITE_ENABLE_ATOMIC_WRITE into two options - the original and SQLITE_ENABLE_BATCH_ATOMIC_WRITE. (check-in: [7eb9bf2c] user: dan branch: batch-atomic-write, size: 293642)
19:49
[7ab90644] part of check-in [416973ed] Add support for F2FS atomic writes. Untested at this point. (check-in: [416973ed] user: dan branch: batch-atomic-write, size: 293273)
19:08
[f29bab45] part of check-in [44c760d1] Fix compiler warnings. (check-in: [44c760d1] user: drh branch: begin-concurrent, size: 297041)
17:47
[7666599a] part of check-in [213c61cb] Merge all the latest trunk enhancements. (check-in: [213c61cb] user: drh branch: begin-concurrent, size: 297030)
2017-07-08
20:46
[7d0bec5d] part of check-in [5a043aa8] Support read-only MVCC transactions in server-mode. Started using "BEGIN READONLY". (check-in: [5a043aa8] user: dan branch: server-process-edition, size: 296880)
2017-07-07
16:40
[542bf64a] part of check-in [216c757f] Merge latest trunk changes with this branch. (check-in: [216c757f] user: dan branch: server-process-edition, size: 296401)
16:12
[0aa31e7e] part of check-in [a3a9a2e1] Have this branch maintain an in-memory hash-table of old pages for read-only MVCC clients. There is no way to access it yet. (check-in: [a3a9a2e1] user: dan branch: server-process-edition, size: 295412)
2017-06-27
20:23
[3f9c94c6] part of check-in [dfa9a4d5] Support clients within a single process only. (check-in: [dfa9a4d5] user: dan branch: server-process-edition, size: 294433)
2017-06-23
21:05
[6140d3cc] part of check-in [53b14a38] Merge all recent trunk enhancements into the apple-osx branch. (check-in: [53b14a38] user: drh branch: apple-osx, size: 293504)
2017-05-29
19:23
[817afaac] part of check-in [9ad846e5] Instead of a root page number, log the object (table or index) name if a page level locking conflict is detected. (check-in: [9ad846e5] user: dan branch: begin-concurrent, size: 297202)
16:45
[14f6982c] part of check-in [6c3476b5] Avoid unnecessary fstat() calls to determine the database size when transitioning into a read transaction on a rollback-mode database. (check-in: [6c3476b5] user: drh branch: io-opt, size: 291800)
14:57
[a656a65b] part of check-in [c733a1de] Avoid unnecessary calls to fstat() to determine the database file size. (check-in: [c733a1de] user: drh branch: io-opt, size: 291849)
14:30
[b9e2eac7] part of check-in [cb29b838] Fix a typo in a comment. No code changes. (check-in: [cb29b838] user: drh branch: trunk, size: 291971)
2017-05-27
18:05
[fcca4121] part of check-in [214d238a] Add debugging functions btreePageOriginFile() and btreePageOriginOffset(). (check-in: [214d238a] user: dan branch: btree-debug, size: 294533)
2017-05-26
18:18
[079884c8] part of check-in [a7e0e7a4] Adjust the bitvec related sqlite3_log messages added by [9527089b]. (check-in: [a7e0e7a4] user: dan branch: begin-concurrent, size: 297143)
2017-05-23
19:23
[babddba9] part of check-in [5b9d498f] Add experimental new API sqlite3_wal_info(). (check-in: [5b9d498f] user: dan branch: begin-concurrent, size: 297652)
2017-05-22
08:01
[f957574d] part of check-in [a726d981] Add code to this branch to emit a log message after each cumulative second that the WRITER lock has been held. (check-in: [a726d981] user: dan branch: server-edition, size: 295098)
2017-05-19
19:57
[ba57b91a] part of check-in [9527089b] Invoke sqlite3_log() in response to irregularities surrounding the Pager.pAllRead bit-vector. (check-in: [9527089b] user: dan branch: begin-concurrent, size: 297523)
2017-05-18
20:47
[a26fa53c] part of check-in [0eed1521] Fix a problem on this branch causing some page-level read-locks to be omitted. (check-in: [0eed1521] user: dan branch: begin-concurrent, size: 297014)
2017-05-15
17:34
[d82c8776] part of check-in [14ea8400] Merge the latest changes from trunk. (check-in: [14ea8400] user: drh branch: begin-concurrent, size: 296973)
2017-05-11
18:49
[1ca1c815] part of check-in [b55c0f14] Merge recent enhancements from trunk. (check-in: [b55c0f14] user: drh branch: apple-osx, size: 293676)
2017-05-10
16:18
[da0832b7] part of check-in [2584df3d] Fix a problem causing a lock to be held past the end of a transaction. Use a blocking lock to take the read-lock on page 1 taken by all transactions. (check-in: [2584df3d] user: dan branch: server-edition, size: 295062)
13:46
[5326f380] part of check-in [4464ca1d] Use a blocking call to obtain the wal-mode WRITER lock in some cases. (check-in: [4464ca1d] user: dan branch: server-edition, size: 295045)
12:49
[80893c08] part of check-in [d2bb0066] Do not invoke codec macros for in-memory subjournals. (check-in: [d2bb0066] user: drh branch: codecless-inmemory-subjournal, size: 291972)
2017-05-08
20:15
[aec4a28d] part of check-in [b733afc1] Add some support for wal mode to the hack on this branch. (check-in: [b733afc1] user: dan branch: server-edition, size: 295036)
18:29
[e00e5844] part of check-in [2c145ee6] Do not invoke codec macros when reading or writing an in-memory sub-journal. (check-in: [2c145ee6] user: dan branch: codecless-inmemory-subjournal, size: 291547)
2017-04-29
15:48
[67e97956] part of check-in [f6b025bf] Avoid reading the file-size before page 1 is read-locked. (check-in: [f6b025bf] user: dan branch: server-edition, size: 294985)
2017-04-28
17:32
[b9ae00a1] part of check-in [a40b42c4] Fix various bugs revealed by running performance tests. (check-in: [a40b42c4] user: dan branch: server-edition, size: 295096)
10:20
[2bea7ef0] part of check-in [778e8a10] Use a different free-list format for server-mode databases in order to reduce contention. (check-in: [778e8a10] user: dan branch: server-edition, size: 294881)
2017-04-27
14:12
[ba9b474f] part of check-in [3144ae40] Do not write master journal filenames into server-mode journal files. Use SQLITE_MUTEX_STATIC_APP1 to protect critical sections in server.c. (check-in: [3144ae40] user: dan branch: server-edition, size: 294660)
13:05
[06b5d925] part of check-in [d5b5326d] If possible, delete the journal file when a database connection is closed. (check-in: [d5b5326d] user: dan branch: server-edition, size: 294527)
2017-04-26
20:45
[80f36e7f] part of check-in [64ecf7c7] Experimental implementation of pessimistic page-level locking based on rollback mode. (check-in: [64ecf7c7] user: dan branch: server-edition, size: 294137)
2017-03-24
15:09
[98a32b80] part of check-in [fd5676fe] Merge all recent enhancements from trunk. (check-in: [fd5676fe] user: drh branch: begin-concurrent, size: 295812)
2017-01-27
16:39
[8a4a3066] part of check-in [0e14fe1b] Merge all recent trunk enhancements into the apple-osx branch. (check-in: [0e14fe1b] user: drh branch: apple-osx, size: 292515)
2017-01-26
02:26
[ff1232b3] part of check-in [9879be18] Make SQLITE_DIRECT_OVERFLOW_READ work for in WAL mode as long as the page being read is not in the the -wal file. (check-in: [9879be18] user: drh branch: trunk, size: 290811)
2017-01-23
21:12
[b0ab0c7e] part of check-in [64131724] Experimental changes to permit a VFS to directly override the initial page size. (check-in: [64131724] user: mistachkin branch: pagePerSector, size: 290693)
2017-01-18
20:14
[fcdfc9ef] part of check-in [2a8f6c89] Add temporary code to record and report on the set of b-tree pages read and written by the current transaction. This is likely still buggy. (check-in: [2a8f6c89] user: dan branch: transaction-pages, size: 290635)
2017-01-09
06:33
[e5b8c9a9] part of check-in [d0e212d0] Upgrade this branch to 3.16 plus the various fixes that appeared after its release. (check-in: [d0e212d0] user: dan branch: begin-concurrent, size: 295592)
2017-01-03
20:20
[e2da02d2] part of check-in [dcbec226] Merge changes from the 3.16.1 release (check-in: [dcbec226] user: drh branch: apple-osx, size: 292295)
2016-12-30
14:25
[9dc72d23] part of check-in [0bdbe49c] Add a test to ensure that the app-defined pcache xFetch() method is never passed a key of zero. (check-in: [0bdbe49c] user: drh branch: trunk, size: 290591)
13:40
[71881289] part of check-in [5550e815] Improved detection of zero page numbers in the page cache. (check-in: [5550e815] user: drh branch: pcache1-zero-page, size: 290639)
12:06
[1c7a2b82] part of check-in [3e25ba6e] Disable the pagerAcquireMapPage() routine if memory-mapped I/O is disabled. This fixes a harmless compiler warning on OpenBSD. (check-in: [3e25ba6e] user: drh branch: trunk, size: 290594)
2016-12-16
21:29
[3677b427] part of check-in [4b1e7804] Merge recent enhancements from trunk, and especially the pragma-as-vtab change. (check-in: [4b1e7804] user: drh branch: apple-osx, size: 292264)
2016-12-14
10:30
[81fe2bb8] part of check-in [6aa9b265] Fix the optimization that prevents writing freelist pages to the journal. (check-in: [6aa9b265] user: drh branch: trunk, size: 290560)
2016-12-13
20:30
[c3ba8e69] part of check-in [ed2c9f37] Fix harmless compiler warnings. (check-in: [ed2c9f37] user: drh branch: trunk, size: 290548)
18:47
[dbcac003] part of check-in [7f88bb44] Convert sqlite3PagerGet() into a pointer-dispatched virtual method. This makes it about 25% faster. (check-in: [7f88bb44] user: drh branch: trunk, size: 290495)
18:34
[38b3a02f] part of check-in [dee20ba9] In the pager, avoid checking for the illegal page number 0 except when creating a new page. (check-in: [dee20ba9] user: drh branch: pager-get-method, size: 290496)
15:53
[642b1968] part of check-in [67df4446] Further refinements to the virtual method implementation of sqlite3PagerGet(). (check-in: [67df4446] user: drh branch: pager-get-method, size: 290525)
14:32
[e99f7edf] part of check-in [df5bb90d] Make the sqlite3PagerGet() interface into a virtual method, with different implementations based on the current state of the pager. This gives a small performance increase by avoiding unnecessary branches inside the various methods. (check-in: [df5bb90d] user: drh branch: pager-get-method, size: 290007)
2016-12-12
16:15
[15b855da] part of check-in [a24f805b] Merge all the latest performance enhancements from trunk. (check-in: [a24f805b] user: drh branch: apple-osx, size: 289959)
16:08
[eaf85901] part of check-in [9675518b] Faster operation for large in-memory databases. (check-in: [9675518b] user: drh branch: trunk, size: 288255)
11:05
[b6f38fc2] part of check-in [d4dff10a] Performance optimization in sqlite3PagerWrite(). (check-in: [d4dff10a] user: drh branch: trunk, size: 288246)
2016-12-09
16:02
[865779c0] part of check-in [01ada3d1] Avoid unnecessary zeroing of fields in the MemPage object that are going to be reinitialized before use anyhow. A smaller and faster binary results. (check-in: [01ada3d1] user: drh branch: trunk, size: 288246)
2016-11-26
20:44
[68343d9c] part of check-in [41a3af54] Merge all recent trunk changes, and especially the new sqlite3_snapshot_recover() interface. (check-in: [41a3af54] user: drh branch: apple-osx, size: 289743)
2016-11-18
20:49
[4e4aea7c] part of check-in [174a6076] Add experimental sqlite3_snapshot_recover() API. (check-in: [174a6076] user: dan branch: serializable-snapshot, size: 288039)
2016-11-17
21:52
[eca40c57] part of check-in [4fe94b0f] Experimental changes for faster in-memory DB operation for large databases. (check-in: [4fe94b0f] user: drh branch: memdb-opt, size: 287744)
2016-11-11
17:08
[a31e2c25] part of check-in [46e00162] Fix a problem with switching from wal to rollback mode when SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE is configured. (check-in: [46e00162] user: dan branch: trunk, size: 287735)
2016-11-04
19:09
[3fea5fb3] part of check-in [0e5ffd91] Merge recent trunk changes, including all the fixes that appeared in version 3.15.1. (check-in: [0e5ffd91] user: drh branch: apple-osx, size: 289342)
2016-11-03
18:30
[b1ee3ec0] part of check-in [63cfe197] Avoid using the "direct overflow read" optimization to read large blobs if the pager layer has a wal file open - even if the database header indicates that the db is not a wal database. (check-in: [63cfe197] user: drh branch: branch-3.15, size: 287251)
2016-10-21
10:49
[549ed868] part of check-in [b54c15f1] Avoid using the "direct overflow read" optimization to read large blobs if the pager layer has a wal file open - even if the database header indicates that the db is not a wal database. (check-in: [b54c15f1] user: dan branch: trunk, size: 287638)
2016-10-17
15:28
[49b6c163] part of check-in [c88d36e2] Changes to support interrupting a checkpoint using sqlite3_interrupt(). (check-in: [c88d36e2] user: dan branch: trunk, size: 287592)
2016-09-07
18:20
[06b9b230] part of check-in [00759af0] Merge recent enhancements from trunk. (check-in: [00759af0] user: drh branch: apple-osx, size: 288909)
2016-09-01
09:35
[bf5b71bd] part of check-in [38d31e18] If SQLITE_ENABLE_ZIPVFS is defined, journal_mode=off is configured and a savepoint or statement rollback is attempted, move the pager into the error state to prevent the transaction from being committed. This makes it safe to use journal_mode=off with zipvfs under some conditions. (check-in: [38d31e18] user: dan branch: trunk, size: 287205)
2016-08-12
16:21
[3d3ab7cb] part of check-in [8a5f41c7] Have wal file checkpoints exit early if the sqlite3_interrupt() API function is called. (check-in: [8a5f41c7] user: dan branch: interruptible-checkpoint, size: 287017)
2016-08-11
19:12
[bd4867fb] part of check-in [d9f8918c] Merge version 3.14 plus some subsequent patches (including the page-cache performance patch) from trunk. (check-in: [d9f8918c] user: drh branch: begin-concurrent, size: 291631)
2016-08-09
11:23
[d69ede96] part of check-in [7d0af4b5] Add a debug timer to pcache1Truncate(). Change the formatting of some other messages to make them easier to read. (check-in: [7d0af4b5] user: dan branch: debug, size: 283758)
01:21
[0d363201] part of check-in [9d4eb6e4] Refocus the timer on the pager_end_transaction() routine. (check-in: [9d4eb6e4] user: drh branch: debug, size: 283723)
2016-08-08
14:21
[5111055c] part of check-in [c3cd543f] Merge all changes from the 3.14 release. (check-in: [c3cd543f] user: drh branch: apple-osx, size: 288334)
2016-08-05
16:16
[40928c45] part of check-in [ae72513a] Undo commit [f250166bb]. It is required to handle IO and other errors that occur within a VACUUM of a Zipvfs database. (check-in: [ae72513a] user: dan branch: trunk, size: 286630)
2016-08-04
14:08
[5099402a] part of check-in [491f1ef3] Add extra logging calls to this branch. (check-in: [491f1ef3] user: dan branch: debug, size: 283072)
2016-06-24
02:21
[3bae603f] part of check-in [a2778ae4] Provide for a separate default page size for TEMP and transient database files and initialize that separate default page size to 1024 instead of 4096. (check-in: [a2778ae4] user: drh branch: temp-page-size, size: 286476)
2016-05-23
02:57
[db9dccd1] part of check-in [815cc2bb] Merge changes from trunk. (check-in: [815cc2bb] user: drh branch: apple-osx, size: 288079)
2016-05-20
18:09
[c368634b] part of check-in [f250166b] Remove the sqlite3PagerClearCache() routine, which does not accomplish anything useful. (check-in: [f250166b] user: drh branch: trunk, size: 286375)
2016-05-16
13:37
[209bc67e] part of check-in [0d9b82af] Merge recent fixes from trunk. (check-in: [0d9b82af] user: drh branch: apple-osx, size: 288334)
2016-05-13
15:22
[3910579b] part of check-in [771c5411] Remove the unused PGHDR_NEED_READ flag. Add invariant checking (during SQLITE_DEBUG builds only) for the PgHdr object. (check-in: [771c5411] user: drh branch: trunk, size: 286630)
12:12
[665c5a4d] part of check-in [3401d9dc] Clarification of the pagerFlushOnCommit() logic. (check-in: [3401d9dc] user: drh branch: trunk, size: 286620)
11:50
[64f42bd0] part of check-in [9495d338] Fix pager_end_transaction() to ensure that a ROLLBACK does not clobber unwritten pages in a TEMP file pcache. (check-in: [9495d338] user: drh branch: trunk, size: 286565)
2016-05-12
19:05
[b6b3f2af] part of check-in [1b0f4cc3] Simplification of the sqlite3FaultSim() call inside of sqlite3PagerCommitPhaseOne(). (check-in: [1b0f4cc3] user: drh branch: trunk, size: 286531)
18:38
[9089b6f3] part of check-in [3fd71092] Add an assert in pager.c to confirm that pPager->tempFile is always true for in-memory databases. (check-in: [3fd71092] user: drh branch: trunk, size: 286539)
12:08
[baef5d8d] part of check-in [06c1e27c] For in-memory databases, it does not matter if pcache entries are marked "clean" or "writable". (check-in: [06c1e27c] user: drh branch: trunk, size: 286499)
12:01
[b7f9341d] part of check-in [0dc50d99] Remove an unnecessary call to sqlite3PcacheMakeClean() inside of the ROLLBACK logic. (check-in: [0dc50d99] user: drh branch: trunk, size: 286508)
2016-05-11
23:54
[76fe5ad6] part of check-in [ad601c79] For in-memory databases, it does not matter if pcache entries are marked "clean" or "writable". (check-in: [ad601c79] user: drh branch: pager-dev, size: 287763)
12:47
[cb7a3990] part of check-in [345ce1c9] Do not reset the page cache when a rollback journal truncate fails, as doing so can cause loss of information for an in-memory TEMP file. (check-in: [345ce1c9] user: drh branch: trunk, size: 287772)
11:04
[146d724b] part of check-in [42fb6f1e] Always truncate, rather than persist, the rollback journal of a TEMP database. (check-in: [42fb6f1e] user: drh branch: trunk, size: 287733)
2016-05-10
20:03
[dd77be61] part of check-in [20cf8811] Fix a problem in sqlite3PagerMovepage() when working on a temp table for which pages have been spilled. (check-in: [20cf8811] user: drh branch: trunk, size: 287715)
2016-05-04
11:28
[c5128733] part of check-in [6341ab2f] Disable the PagerDontWrite() optimization for temp tables. It can cause database corruption if a page passed to PagerDontWrite() is dirty at the start of a transaction that is subsequently rolled back. (check-in: [6341ab2f] user: dan branch: trunk, size: 287727)
2016-05-03
02:43
[c93fda2f] part of check-in [8f05e140] Fix the build when SQLITE_ENABLE_DATA_PROTECTION is defined. (check-in: [8f05e140] user: drh branch: apple-osx, size: 289088)
2016-04-29
16:01
[41559a2b] part of check-in [91e5c07e] Merge the latest enhancements from trunk. (check-in: [91e5c07e] user: drh branch: begin-concurrent, size: 292385)
15:52
[c02274c2] part of check-in [81b76901] Merge enhancements from trunk, and in particular the TEMP file deferred I/O enhancements. (check-in: [81b76901] user: drh branch: apple-osx, size: 289088)
2016-04-25
22:39
[a8d30c49] part of check-in [8bfde416] Add an sqlite3FaultSim() all to make it easier to simulate IO errors in a VACUUM commit. (check-in: [8bfde416] user: drh branch: tempfiles-25, size: 287384)
19:28
[456ea27c] part of check-in [36f97ca8] Remove an obsolete comment from the pager. No code changes. (check-in: [36f97ca8] user: drh branch: tempfiles-25, size: 287250)
19:20
[a31af55d] part of check-in [3ae44770] Fix some unreachable branches in the pager. (check-in: [3ae44770] user: drh branch: tempfiles-25, size: 287463)
2016-04-23
17:24
[cbc8996b] part of check-in [c80c5c62] Fix a problem with mixing temp-files and mmap-mode. (check-in: [c80c5c62] user: dan branch: tempfiles-25, size: 287363)
14:55
[4981dc61] part of check-in [3d61da4a] Fix some problems to do with temp-file databases and recovering from IO and SQLITE_FULL errors. (check-in: [3d61da4a] user: dan branch: tempfiles-25, size: 287324)
2016-04-21
15:35
[1b5c2b76] part of check-in [a15c49ae] Merge all recent enhancements from trunk. (check-in: [a15c49ae] user: drh branch: apple-osx, size: 287245)
15:03
[bb8c7ff7] part of check-in [cc28106e] Merge updates from trunk. (check-in: [cc28106e] user: drh branch: tempfiles-25, size: 287125)
2016-04-20
19:30
[d20fa46d] part of check-in [3340f086] When an error occurs while transitioning out of WAL mode, make sure the locking state is not left at EXCLUSIVE. (check-in: [3340f086] user: drh branch: trunk, size: 285548)
2016-04-13
16:52
[4d849ad7] part of check-in [f6babf29] On commit, flush dirty temp-file pages only if the file is already open and 25% or more of the cache is dirty. (check-in: [f6babf29] user: dan branch: tempfiles-25, size: 287048)
2016-04-12
19:09
[525f3698] part of check-in [bbac71aa] Once a temporary database file has been opened, flush all dirty pages to disk when comitting a transaction. (check-in: [bbac71aa] user: dan branch: tempfiles-lazy-open, size: 286340)
2016-04-11
18:07
[4cc8a5b3] part of check-in [4eb06e84] Fixes for OOM and IO error handling with temp file databases. (check-in: [4eb06e84] user: dan branch: tempfiles-lazy-open, size: 286287)
2016-04-06
18:20
[91d7462a] part of check-in [84c55701] For a pager backed by a temp file, store the main journal in memory until it is at least sqlite3_config.nStmtSpill bytes in size. Prevent the backup API from being used to change the page-size of a temp file. (check-in: [84c55701] user: dan branch: tempfiles-lazy-open, size: 286013)
16:27
[2047e837] part of check-in [84de8813] Fix a problem in test script lock.test. Fix minor issues in pager.c. (check-in: [84de8813] user: dan branch: tempfiles-lazy-open, size: 286012)
15:39
[685f3cc0] part of check-in [afe9bd9b] Add tests to this branch. Fix a problem with temporary databases in auto-vacuum mode. (check-in: [afe9bd9b] user: dan branch: tempfiles-lazy-open, size: 286009)
2016-04-05
21:07
[123dbae4] part of check-in [be5a549e] Defer opening the file used for the temp database (where CREATE TEMP TABLE tables are stored) until the database is too large to reside entirely within the cache. There are likely still problems on this branch. (check-in: [be5a549e] user: dan branch: tempfiles-lazy-open, size: 285970)
00:44
[b0abe726] part of check-in [0c97b802] Avoid unnecessary memset() operations in sqlite3PagerGet(). (check-in: [0c97b802] user: drh branch: pager-get-noinit, size: 285542)
2016-03-16
19:34
[476884ce] part of check-in [a7978ab6] Merge the latest enhancements from trunk. (check-in: [a7978ab6] user: drh branch: begin-concurrent, size: 290472)
2016-03-15
12:45
[2c38bcb3] part of check-in [f41a7361] Merge updates from trunk - FTS5 fixes and enhancemenets to the tests scripts so that they work with SEE. (check-in: [f41a7361] user: drh branch: apple-osx, size: 287168)
2016-03-11
23:07
[38718a01] part of check-in [74f5d3b0] Do not allow the use of WAL mode with nolock=1 because it does not work. (check-in: [74f5d3b0] user: drh branch: trunk, size: 285471)
2016-03-08
16:35
[18595a88] part of check-in [29741941] Merge changes from trunk, especially the SQLITE_DEFAULT_SYNCHRONOUS enhancements. (check-in: [29741941] user: drh branch: apple-osx, size: 287135)
16:07
[2d950142] part of check-in [f6d3156b] Drop support for SQLITE_EXTRA_DURABLE. The new SQLITE_DEFAULT_SYNCHRONOUS compile-time option is a more general replacement. (check-in: [f6d3156b] user: drh branch: trunk, size: 285438)
14:01
[685c4648] part of check-in [58023bfc] Merge coverage improvements and comment fixes from trunk. (check-in: [58023bfc] user: drh branch: apple-osx, size: 287769)
13:56
[17aa37b3] part of check-in [3a65a1fc] Fix comments on pager flag settings to include synchronous=EXTRA. (check-in: [3a65a1fc] user: drh branch: trunk, size: 286072)
2016-03-07
20:48
[47637146] part of check-in [84f09f00] Merge recent enhancements from trunk. (check-in: [84f09f00] user: drh branch: apple-osx, size: 287522)
17:37
[d40cf1e8] part of check-in [b6c42024] Add the SQLITE_CONFIG_STMTJRNL_SPILL option for sqlite3_config(). (check-in: [b6c42024] user: drh branch: trunk, size: 285825)
2016-03-04
14:57
[b22ed0d3] part of check-in [2f0c195c] Merge recent enhancements from trunk, and especially the changes that reduce the heap-memory footprint of schemas, and defer opening and writing to statement journals. (check-in: [2f0c195c] user: drh branch: apple-osx, size: 287487)
2016-02-29
20:18
[2bc43817] part of check-in [44b2dc18] When using a temporary file for a statement journal, store the first 64KiB in memory. If the file grows larger than that, flush it to disk and free the memory. Hardcoding to 64KiB is just an experiment to check that the memjournal.c code works. (check-in: [44b2dc18] user: dan branch: memjournal-exp, size: 285790)
20:00
[24dd5e46] part of check-in [9fd3f7b9] Fix minor problems with new code in memjournal.c. (check-in: [9fd3f7b9] user: dan branch: memjournal-exp, size: 285644)
2016-02-27
20:14
[e2bf43b5] part of check-in [e0b0b431] Extend the code in memjournal.c so that it subsumes the role of journal.c. And (untested) can flush journal or statement journal files to disk after they grow to a specified size. (check-in: [e0b0b431] user: dan branch: memjournal-exp, size: 285578)
2016-02-26
16:14
[14a1213d] part of check-in [4fb4aee8] Merge all recent enhancements from trunk, and in particular the SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER change. (check-in: [4fb4aee8] user: drh branch: apple-osx, size: 287707)
2016-02-22
23:44
[d034c69b] part of check-in [aa9f4c62] Remove code not needed now that synchronous=OFF database files no longer trigger the use of a master journal. (check-in: [aa9f4c62] user: drh branch: trunk, size: 286010)
2016-02-18
01:36
[54b05436] part of check-in [b7fa0fb3] Merge recent performance enhancements and the enhanced API_ARMOR from trunk. (check-in: [b7fa0fb3] user: drh branch: apple-osx, size: 287893)
2016-02-13
23:43
[6812f380] part of check-in [6a9c4a3e] Enhance ability to debug out-of-memory errors. (check-in: [6a9c4a3e] user: mistachkin branch: noMemBkpt, size: 286196)
2016-02-05
14:34
[dff5eb9a] part of check-in [332c8036] Merge PRAGMA synchronous=EXTRA and OOM performance enhancements from trunk. (check-in: [332c8036] user: drh branch: begin-concurrent, size: 291097)
14:29
[184997e9] part of check-in [201fcbee] Merge OOM handling optimizations and PRAGMA synchronous=EXTRA as well as other enhancements from trunk. (check-in: [201fcbee] user: drh branch: apple-osx, size: 287793)
2016-02-04
09:48
[67cd2fba] part of check-in [e3157cb5] Refinements to synchronous logic: (1) Use PAGER_SYNCHRONOUS_FULL rather than the corresponding magic number. (2) Honor SQLITE_NO_SYNC on xDelete calls with sync (3) Count xDelete syncs during testing (4) Fix #ifs on SQLITE_EXTRA_DURABLE so that directory syncs on journal unlink are off by default. (check-in: [e3157cb5] user: drh branch: trunk, size: 286096)
2016-02-03
19:20
[3e189231] part of check-in [af924018] Add "PRAGMA synchronous=EXTRA" which syncs the directory containing the rollback journal when the rollback journal is deleted in order to commit a transaction in DELETE mode. (check-in: [af924018] user: drh branch: trunk, size: 286099)
2016-02-02
02:53
[040531b0] part of check-in [347f6a80] Merge recent enhancements from trunk. (check-in: [347f6a80] user: drh branch: begin-concurrent, size: 290795)
02:30
[29b5eeb8] part of check-in [e6a4a163] Merge recent enhancements from trunk. (check-in: [e6a4a163] user: drh branch: apple-osx, size: 287491)
2016-01-25
13:55
[2916c66a] part of check-in [30671345] Add the SQLITE_EXTRA_DURABLE compile-time option. (check-in: [30671345] user: drh branch: trunk, size: 285794)
2016-01-14
15:46
[d718fb21] part of check-in [fccc5f20] Merge the latest enhancements and fixes from trunk. (check-in: [fccc5f20] user: dan branch: begin-concurrent, size: 290168)
15:03
[65095e5e] part of check-in [d85774e0] Merge the latest enhancements and fixes from trunk. (check-in: [d85774e0] user: drh branch: apple-osx, size: 286864)
01:56
[f4e9ac39] part of check-in [d55a557b] Fix the build so that it works for SQLITE_OMIT_WAL again. (check-in: [d55a557b] user: drh branch: trunk, size: 285167)
2016-01-09
16:39
[c241cace] part of check-in [5d113aef] If a single page is written to the wal file more than once, have each subsequent copy overwrite the original frame. (check-in: [5d113aef] user: dan branch: wal-overwrite-frames, size: 284981)
2016-01-08
02:27
[5dda328a] part of check-in [a02ace9a] Add the experimental SQLITE_FCNTL_JOURNAL_POINTER file control for obtaining the sqlite3_file pointer associated with a rollback journal or WAL file. (check-in: [a02ace9a] user: drh branch: file-control-journal, size: 285106)
2015-12-16
19:55
[e290899d] part of check-in [cb22efaf] Merge recent enhancements from trunk. (check-in: [cb22efaf] user: drh branch: begin-concurrent, size: 289855)
2015-12-11
12:53
[25186b68] part of check-in [7e7b2406] Merge recent trunk enhancements, and in particular the snapshot interface. (check-in: [7e7b2406] user: drh branch: apple-osx, size: 286513)
2015-12-05
20:51
[58d25936] part of check-in [0715eb00] Add untested implementations of experimental APIs sqlite3_snapshot_get(), _open() and _free(). (check-in: [0715eb00] user: dan branch: snapshot-get, size: 284854)
2015-12-02
20:53
[d4c71e12] part of check-in [9130661a] Merge recent enhancements from trunk. (check-in: [9130661a] user: drh branch: begin-concurrent, size: 289032)
20:22
[f286cbf2] part of check-in [e1fb33c7] Merge all recent trunk enhancements, especially the unix VFS changes. (check-in: [e1fb33c7] user: drh branch: apple-osx, size: 285690)
2015-11-28
18:06
[f92aacd5] part of check-in [7c6a809e] Add the SQLITE_FCNTL_VFS_POINTER file control which obtains a pointer to the top-level VFS in use by a database connection. (check-in: [7c6a809e] user: drh branch: trunk, size: 284031)
2015-11-20
13:49
[44cc9e8e] part of check-in [41c8b8e3] Merge all the latest enhancements and fixes from trunk. (check-in: [41c8b8e3] user: drh branch: begin-concurrent, size: 289038)
2015-11-12
16:51
[93b495fb] part of check-in [e72331c7] Merge the latest enhancements from trunk, and in particular the "PRAGMA cache_spill=N" change. (check-in: [e72331c7] user: drh branch: apple-osx, size: 285696)
14:57
[18341e2b] part of check-in [549d42be] First attempt at enhancing the "PRAGMA cache_spill" statement to accept a cache threashold size. (check-in: [549d42be] user: drh branch: cache_spill=N, size: 284037)
2015-11-07
01:57
[681ed822] part of check-in [5429f99b] Merge recent enhancements and fixes from trunk. (check-in: [5429f99b] user: drh branch: apple-osx, size: 285401)
2015-11-04
20:22
[ed5cff11] part of check-in [708253be] Rename the sqlite3PagerAcquire() function to sqlite3PagerGet(). The former macro called sqlite3PagerGet() has been removed. (check-in: [708253be] user: drh branch: trunk, size: 283742)
2015-10-30
17:17
[e69349b9] part of check-in [f2cde4cf] Merge the sqlite3_db_cacheflush() enhancements and other changes from trunk. (check-in: [f2cde4cf] user: drh branch: begin-concurrent, size: 288743)
16:23
[b35877e3] part of check-in [6e4306ef] Merge latest trunk changes, including sqlite3_db_cacheflush(), with this branch. (check-in: [6e4306ef] user: dan branch: apple-osx, size: 285401)
14:28
[9c1eec0d] part of check-in [a6695b00] Return immediately if sqlite3PagerWrite() is called when the pager is in PAGER_ERROR state. (check-in: [a6695b00] user: dan branch: cacheflush, size: 283742)
2015-10-29
21:11
[b588107e] part of check-in [9b79a390] Do not attempt to flush the pages of an in-memory database to disk if sqlite3_db_cacheflush() is called. (check-in: [9b79a390] user: dan branch: cacheflush, size: 283724)
18:16
[2f9de81e] part of check-in [370b5d52] Avoid automatically rolling back the transaction if an SQLITE_IOERR or SQLITE_FULL error occurs within sqlite3_db_cacheflush(). (check-in: [370b5d52] user: dan branch: cacheflush, size: 283687)
2015-10-28
19:46
[059991ce] part of check-in [65b86dc1] Add experimental API sqlite3_db_cacheflush(). (check-in: [65b86dc1] user: dan branch: cacheflush, size: 283552)
2015-09-24
15:17
[13780cd8] part of check-in [c63c1e15] Merge all recent trunk enhancements and fixes into the begin-concurrent branch. (check-in: [c63c1e15] user: drh branch: begin-concurrent, size: 288169)
14:43
[8b1c29e6] part of check-in [4dd06d8b] Merge recent trunk enhancements into the apple-osx branch. (check-in: [4dd06d8b] user: drh branch: apple-osx, size: 284853)
2015-09-23
19:17
[2fbeeba2] part of check-in [5b61b72f] Take care that the number of reserved bits per page is consistent between the source and destination databases when doing the back-copy on a VACUUM. (check-in: [5b61b72f] user: drh branch: trunk, size: 283194)
2015-09-15
17:20
[d4444e61] part of check-in [f12b8a0f] Merge trunk enhancements into the apple-osx branch. (check-in: [f12b8a0f] user: drh branch: apple-osx, size: 284446)
2015-09-03
20:52
[06e10a0b] part of check-in [c490bfb1] Merge performance enhancements from trunk. This branch now runs (slightly) faster than the 3.8.11.1 release, though still slightly slower than trunk. (check-in: [c490bfb1] user: drh branch: begin-concurrent, size: 287762)
20:43
[4784012f] part of check-in [f00a9e1e] Change the pcache module to keep track of the total number of references to all pages rather than the number of pages references, for a performance improvement and size reduction. (check-in: [f00a9e1e] user: drh branch: trunk, size: 282787)
18:20
[748ff3e1] part of check-in [618d8dd4] A simple optimization and size reduction in sqlite3PagerAcquire(). (check-in: [618d8dd4] user: drh branch: trunk, size: 282508)
17:54
[2a9d77ac] part of check-in [b79096be] Change the Pager.hasBeenUsed flag into Pager.hasHeldSharedLock in order to take it off the critical path in sqlite3PagerAcquire(). (check-in: [b79096be] user: drh branch: trunk, size: 282498)
15:17
[567093b5] part of check-in [f8ae9bfd] Changes from ENABLE_CONCURRENT (default off) to OMIT_CONCURRENT (default on). This is not a clear-cut decision and might be changed back. (check-in: [f8ae9bfd] user: drh branch: begin-concurrent, size: 287408)
2015-09-01
17:48
[284edd20] part of check-in [5ed2a445] Fixes so that it builds without warnings both with and without SQLITE_ENABLE_CONCURRENT. (check-in: [5ed2a445] user: drh branch: begin-concurrent, size: 287224)
2015-08-28
02:12
[4e202d93] part of check-in [da864658] Merge trunk enhancements into the apple-osx branch. Most tests works, but there are yet a few issues to be resolved. (check-in: [da864658] user: drh branch: apple-osx, size: 284092)
2015-08-27
19:57
[4343baff] part of check-in [437c7e21] Add header comments for new methods in pager.c. (check-in: [437c7e21] user: dan branch: begin-concurrent, size: 287185)
17:42
[732f3b10] part of check-in [fc17f731] Fix a problem whereby concurrent transactions would not consider pages read by the transaction before the first write statement. (check-in: [fc17f731] user: dan branch: begin-concurrent, size: 286752)
2015-08-26
18:54
[bb8e237a] part of check-in [69394dda] Fix an assert() in pager.c that could fail in a concurrent transaction. (check-in: [69394dda] user: dan branch: begin-concurrent, size: 286793)
2015-08-24
19:56
[2e2559e6] part of check-in [ba1ab858] Change "BEGIN UNLOCKED" to "BEGIN CONCURRENT". (check-in: [ba1ab858] user: dan branch: begin-concurrent, size: 286773)
16:00
[57e5775b] part of check-in [04113557] Fix compilation without SQLITE_ENABLE_UNLOCKED. Also other code organization issues. (check-in: [04113557] user: dan branch: begin-concurrent, size: 286727)
06:43
[a952e4b4] part of check-in [4460764e] Fix another problem involving unlocked transactions and wal-file restarts. (check-in: [4460764e] user: dan branch: begin-concurrent, size: 285381)
2015-08-21
20:11
[951b7bae] part of check-in [53aaeea6] Fix many minor issues in the unlocked transaction code. (check-in: [53aaeea6] user: dan branch: begin-concurrent, size: 285347)
2015-08-20
20:25
[48a76f16] part of check-in [7c361478] Fix a problem causing corruption when an UNLOCKED transaction is rolled back. (check-in: [7c361478] user: dan branch: begin-concurrent, size: 285468)
2015-08-19
20:27
[fe82e368] part of check-in [3bbc31d5] When committing an unlocked transaction, relocate newly allocated database pages within the file to avoid conflicting with committed transactions. There are lots of things still to fix in this code. (check-in: [3bbc31d5] user: dan branch: begin-concurrent, size: 285035)
2015-08-11
13:41
[f2318f05] part of check-in [b09e3ea7] Add some extra timestamps to the experimental log output. (check-in: [b09e3ea7] user: dan branch: experimentalIoLog, size: 283195)
2015-08-10
20:22
[751cd2f0] part of check-in [ac5d2e9d] Add the sqlite3_experimental_log_open() interface. This is for diagnostic use only and is not intended to ever go on trunk. (check-in: [ac5d2e9d] user: drh branch: experimentalIoLog, size: 283117)
2015-08-07
09:42
[c22ef6b1] part of check-in [3a82c8e6] Within a write-transaction on a wal database in mmap mode, check the page-cache for an entry before the wal file. This can be faster if the wal file is very large. (check-in: [3a82c8e6] user: dan branch: mmap-wal-bigtrans, size: 282339)
2015-07-29
12:14
[18aa6754] part of check-in [0b971842] Only allow UNLOCKED transactions to commit if none of the pages read by the transaction have been modified since it was opened. (check-in: [0b971842] user: dan branch: begin-concurrent, size: 284690)
2015-07-27
19:31
[c9f22eb8] part of check-in [80794216] Add an experimental "BEGIN UNLOCKED" command. (check-in: [80794216] user: dan branch: begin-concurrent, size: 284237)
2015-07-01
17:13
[aa916ca2] part of check-in [1c522123] Rework the PRAGMA integrity_check logic. Simplify the checkTreePage() routine and clean up the error messages generated. (check-in: [1c522123] user: drh branch: integrity-check-refactor, size: 282433)
2015-06-30
11:07
[922d8ea2] part of check-in [b406b20e] Change an unreachable branch into an assert() in sqlite3PagerAcquire() and optimize sqlite3PcacheOpenSavepoint() by factoring out rarely used code into a subroutine. (check-in: [b406b20e] user: drh branch: trunk, size: 282406)
03:57
[3fa869da] part of check-in [d9a0481c] Optimization to the sqlite3PcacheFetch() logic. (check-in: [d9a0481c] user: drh branch: trunk, size: 282168)
03:34
[fbd0dd63] part of check-in [a0fa6b3b] Put all variable declarations for sqlite3PagerWrite() at the beginning of the block. Syntax only - no logic changes. (check-in: [a0fa6b3b] user: drh branch: trunk, size: 282015)
2015-06-29
20:53
[6ae566c3] part of check-in [ba425a6a] Add a bypass path in sqlite3PagerWrite() for pages with the PGHDR_WRITEABLE bit set, for about a 1% performance increase. (check-in: [ba425a6a] user: drh branch: trunk, size: 282030)
19:08
[4cf1b151] part of check-in [3b65eb56] Combine subjRequiresPage() and subjournalPage() into a single subjournalPageIfRequired() routine. (check-in: [3b65eb56] user: drh branch: trunk, size: 281804)
18:29
[349cc089] part of check-in [7c4ef7b7] Add the PGHDR_WRITEABLE bit for PgHdr.flags which is used to distinguish between pages that are on the dirty list and pages that are safe to modify. (check-in: [7c4ef7b7] user: drh branch: trunk, size: 283172)
18:14
[81099edb] part of check-in [14de3d39] Fix over-length source code lines in pager.c. (check-in: [14de3d39] user: drh branch: trunk, size: 282819)
14:11
[7e745749] part of check-in [ab7aeeea] Simplifications and performance improvement in pager_write(). (check-in: [ab7aeeea] user: drh branch: trunk, size: 282921)
2015-06-28
17:33
[db79b64a] part of check-in [94ef1701] Comment typo fix and minor cleanup in the pager. No logic changes. (check-in: [94ef1701] user: drh branch: trunk, size: 283115)
2015-05-25
10:29
[9bc918a0] part of check-in [4e4228c4] Fix an obsolete comment - no changes to code. (check-in: [4e4228c4] user: drh branch: trunk, size: 283129)
2015-05-01
16:57
[97110085] part of check-in [40db3e40] Fix an assert() failure caused by setting "PRAGMA journal_mode=off" on an database in exclusive-mode that has already opened the journal file. (check-in: [40db3e40] user: dan branch: trunk, size: 283203)
2015-04-19
21:43
[5283581c] part of check-in [d05becd8] Fix harmless compiler warnings seen with MSVC 2015. (check-in: [d05becd8] user: mistachkin branch: vsix2015, size: 283122)
2015-02-11
16:54
[9d29fb3d] part of check-in [0b63e8dc] Merge latest trunk changes with this branch. (check-in: [0b63e8dc] user: dan branch: ota-update-no-pager_ota_mode, size: 283674)
2015-02-07
19:17
[46bc7849] part of check-in [8ac58e46] Remove "PRAGMA pager_ota_mode". (check-in: [8ac58e46] user: dan branch: ota-update-no-pager_ota_mode, size: 284831)
2015-01-28
12:00
[90b164ac] part of check-in [17c69be8] Merge in all changes from trunk. (check-in: [17c69be8] user: drh branch: ota-update, size: 286520)
2015-01-02
19:17
[694caffb] part of check-in [df3cdf9f] Merge the latest changes from trunk into the apple-osx branch. (check-in: [df3cdf9f] user: drh branch: apple-osx, size: 284873)
2014-12-31
14:18
[4120a49e] part of check-in [cf48eb60] Make sure PRAGMA data_version is updated even if the cache is empty when another connection changes the database. (check-in: [cf48eb60] user: drh branch: trunk, size: 283214)
2014-12-20
14:34
[2cbaf886] part of check-in [44ee5383] Update the PRAGMA data_version command so that it reponse to changes made by a shared-cache database connection, and also to changes made by the same database connection. Add test cases to verify the new behavior. (check-in: [44ee5383] user: drh branch: data_version_pragma, size: 283073)
2014-12-19
19:28
[abe022cd] part of check-in [43db1f44] Experimental "PRAGMA data_version" command for detecting when another process has changed the database file. (check-in: [43db1f44] user: drh branch: data_version_pragma, size: 283020)
2014-12-08
07:50
[47f13c19] part of check-in [69a312ad] Update this branch with latest trunk changes. (check-in: [69a312ad] user: dan branch: ota-update, size: 286085)
2014-12-04
23:42
[0bfd3ceb] part of check-in [463ad971] Import from trunk support for SQLITE_CHECKPOINT_TRUNCATE and fixes for a couple of obscure bugs. (check-in: [463ad971] user: drh branch: apple-osx, size: 284438)
2014-12-03
19:25
[7a5c5bc0] part of check-in [b2da8afc] Add evidence marks and assert()s used as evidence for checkpoint requirements. (check-in: [b2da8afc] user: drh branch: trunk, size: 282779)
2014-12-02
16:38
[7663d83b] part of check-in [43c4ba26] Merge all recent enhancements and bug fixes from trunk into the apple-osx branch. (check-in: [43c4ba26] user: drh branch: apple-osx, size: 284389)
2014-11-22
09:09
[9fe27a76] part of check-in [600cefdd] Add SQLITE_ENABLE_OTA pre-processor directives so that this branch may be compiled with or without OTA. (check-in: [600cefdd] user: dan branch: ota-update, size: 286036)
2014-11-21
14:37
[c2a4795e] part of check-in [7ef44c5b] Merge latest trunk changes with this branch. (check-in: [7ef44c5b] user: dan branch: ota-update, size: 285287)
2014-11-20
15:11
[e5378efa] part of check-in [556c3de5] Updates to support zipvfs in pass-through mode. (check-in: [556c3de5] user: dan branch: ota-update, size: 284462)
2014-11-19
16:36
[b8764f90] part of check-in [6d00bcca] Add new requirements marks associated with the file format documentation. No changes to code. (check-in: [6d00bcca] user: drh branch: trunk, size: 282730)
2014-10-27
18:42
[b7c7af7c] part of check-in [10aaf3b1] Merge latest enhancements, including the SQLITE_ENABLE_API_ARMOR patch, from trunk. (check-in: [10aaf3b1] user: drh branch: apple-osx, size: 284391)
2014-10-24
20:57
[8d97b363] part of check-in [ecc3544e] Ensure that the "Any prior cache entry associated with newKey is guaranteed not to be pinned" guarantee made to xRekey implementations is not violated. (check-in: [ecc3544e] user: dan branch: defrag-opt, size: 282732)
16:40
[d02833ad] part of check-in [eab8706d] Fix some minor formatting and code organization issues. (check-in: [eab8706d] user: dan branch: defrag-opt, size: 282865)
2014-10-22
18:42
[18be49e3] part of check-in [854a54c6] Merge latest trunk with this branch. (check-in: [854a54c6] user: dan branch: defrag-opt, size: 282511)
02:43
[00ef5573] part of check-in [67484807] Call fsync() right after ftruncate() when in journal_mode=TRUNCATE and when synchronous=FULL in order to ensure that transactions are durable across a power loss that happens moments after the commit. Proposed fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1072773. This is a cherry-pick of [3e922208b68563] (check-in: [67484807] user: drh branch: branch-3.8.6, size: 281803)
2014-10-21
21:56
[a98547ad] part of check-in [3e922208] Call fsync() right after ftruncate() when in journal_mode=TRUNCATE and when synchronous=FULL in order to ensure that transactions are durable across a power loss that happens moments after the commit. Proposed fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1072773. (check-in: [3e922208] user: drh branch: trunk, size: 282320)
19:35
[e1e385e0] part of check-in [6fd09854] Test that sqlite3ota_open() works with URI paths. Fix some other issues. (check-in: [6fd09854] user: dan branch: ota-update, size: 284442)
2014-10-20
16:34
[93ad94d6] part of check-in [d380a648] Merge version-3.8.7 changes with this branch. (check-in: [d380a648] user: dan branch: ota-update, size: 284086)
16:24
[59c1d41b] part of check-in [0bf1301a] Have the ota extension perform an incremental checkpoint after generating the wal file. (check-in: [0bf1301a] user: dan branch: ota-update, size: 284046)
2014-10-13
18:09
[492aab0f] part of check-in [d5b7c5a8] Merge trunk changes into this branch. (check-in: [d5b7c5a8] user: dan branch: defrag-opt, size: 282095)
2014-10-09
19:35
[0abcb090] part of check-in [29304499] Change the balance_nonroot() routine to reduce the amount of memcpy work that takes place. This is a work in progress. (check-in: [29304499] user: dan branch: defrag-opt, size: 282055)
11:27
[83e9a7af] part of check-in [6fc72077] Merge the latest trunk enhancements into the apple-osx branch. (check-in: [6fc72077] user: drh branch: apple-osx, size: 283563)
2014-10-08
13:34
[a171cf9d] part of check-in [e4b43967] Ensure that the Pager.pTmpSpace allocation is correct even if an OOM error occurs while reducing the page size. (check-in: [e4b43967] user: drh branch: trunk, size: 281904)
2014-09-21
23:08
[69e5a3f5] part of check-in [3967ebe8] Merge in all recent changes from trunk. (check-in: [3967ebe8] user: drh branch: apple-osx, size: 283523)
2014-09-18
11:31
[348c9da9] part of check-in [67ea2979] Merge latest trunk changes with this branch. (check-in: [67ea2979] user: dan branch: ota-update, size: 283741)
09:59
[caab0077] part of check-in [3bd7c1b2] Modify an assert() within sqlite3PagerWalFramesize(), a function only ever used by zipvfs, to account for recent zipvfs changes. (check-in: [3bd7c1b2] user: dan branch: trunk, size: 281864)
2014-09-16
20:02
[2dafc02d] part of check-in [decaccc3] Clarify the effects of the pager_ota_mode pragma. Add tests and fixes for the same. (check-in: [decaccc3] user: dan branch: ota-update, size: 283741)
2014-09-15
19:34
[c1cdf550] part of check-in [48d201cd] Remove the experimental sqlite3_transaction_save() and restore() APIs. (check-in: [48d201cd] user: dan branch: ota-update, size: 282727)
15:34
[b7c625fc] part of check-in [55b8011d] Merge latest trunk changes with this branch. (check-in: [55b8011d] user: dan branch: ota-update, size: 283697)
2014-09-09
17:27
[c6c80998] part of check-in [94954850] Add new APIs that take 64-bit length parameters: sqlite3_malloc64(), sqlite3_realloc64(), sqlite3_bind_blob64(), sqlite3_bind_texte64(), sqlite3_result_blob64(), and sqlite3_result_texte64(). Internal memory allocation routines also now use 64-bit unsigned length parameters for safety. Also add the sqlite3_msize() interface. Fix the sqlite3_get_table() to use sqlite3_realloc64() to avoid a integer overflow problem. (check-in: [94954850] user: drh branch: 64-bit-lengths, size: 281864)
2014-09-06
16:39
[31da9594] part of check-in [e62aab5e] Fix typos in comments. No code changes. (check-in: [e62aab5e] user: peter.d.reid branch: trunk, size: 281869)
03:38
[a5e1a498] part of check-in [4d4fb197] Do not record a page-size change if the attempt to change the page size failed due to an OOM error. (check-in: [4d4fb197] user: drh branch: trunk, size: 281874)
2014-09-04
19:05
[9611de7c] part of check-in [9ae44447] Avoid ever running a checkpoint in ota mode. (check-in: [9ae44447] user: dan branch: ota-update, size: 283676)
2014-09-03
19:30
[ed122b13] part of check-in [209f672e] Split part of "PRAGMA ota_mode" off into "PRAGMA pager_ota_mode". This allows some specialized custom VFS implementations to intercept and implement the expected pager-related effects of this pragma. (check-in: [209f672e] user: dan branch: ota-update, size: 283654)
2014-09-02
19:59
[a3caa08d] part of check-in [2954ab50] Add an experimental extension for applying bulk updates to databases. (check-in: [2954ab50] user: dan branch: ota-update, size: 282850)
15:57
[919d4e7e] part of check-in [696dc935] Merge the latest trunk changes into the apple-osx branch. (check-in: [696dc935] user: drh branch: apple-osx, size: 283502)
2014-08-27
23:18
[3e732d2b] part of check-in [bdb6e497] Refactor the sqlite3PcacheFetch() routine into three separate routines, which are significantly faster overall and about 100 bytes smaller in size as well. (check-in: [bdb6e497] user: drh branch: trunk, size: 281843)
2014-08-26
15:06
[27fb89e6] part of check-in [f1f94a97] Change the page cache so that a new sqlite3_pcache object is allocated as soon as the page cache is opened, not delayed until the first fetch request. This give a noticable performance boost. The interface between pager and the page cache has changed slightly, which might break ZIPVFS. (check-in: [f1f94a97] user: drh branch: trunk, size: 281486)
02:02
[cf19f920] part of check-in [5c273111] Merge recent performance enhancements and the CAST operator enhancements into the apple-osx branch. (check-in: [5c273111] user: drh branch: apple-osx, size: 283118)
2014-08-25
11:33
[53cc5e9d] part of check-in [54164ce4] Remove the pager_lookup() function since it is redundant with sqlite3PagerLookup(). (check-in: [54164ce4] user: drh branch: trunk, size: 281459)
2014-08-24
01:32
[c831b0df] part of check-in [c63311e2] Patch the sqlite3PagerWrite() method in the Pager to run a bit faster. (check-in: [c63311e2] user: drh branch: trunk, size: 281987)
2014-08-15
22:37
[fc176801] part of check-in [c8ade949] Aborted merge. (check-in: [c8ade949] user: numist branch: obsolete, size: 283191)
2014-05-19
15:16
[e4855453] part of check-in [17349a49] Changes to help ensure that a multiplication does not overflow when computing the number of bytes needed for a memory allocation, and cause a malfunction. No problems existing problems were discovered. However, these changes should help to ensure that no problems arise in the future. (check-in: [17349a49] user: drh branch: safer-malloc, size: 281392)
2014-05-09
13:27
[d878c40e] part of check-in [eafd8aa1] Fix compiler warnings. When forcing the delete of a WAL file, do not fail if the WAL files does not exist. All "veryquick.tcl" tests are now passing on Linux under the standard compile-time options. (check-in: [eafd8aa1] user: drh branch: apple-osx, size: 283046)
2014-05-08
23:01
[0f883505] part of check-in [9411d7dc] Initial attempt to merge in all trunk changes over the previous 1.5 years. This check-in compiles but there are compiler warnings and "make test" segfaults after only running a few test modules. (check-in: [9411d7dc] user: drh branch: apple-osx, size: 282986)
2014-05-07
15:32
[f6bb1fa6] part of check-in [e193aced] Fix nolock and immutable so that they work even if READONLY is requested. (check-in: [e193aced] user: drh branch: win32-none, size: 281387)
2014-05-01
01:49
[6ed54e16] part of check-in [725c1c14] Take out the special handling of nolock=true in os_win.c and add it to pager.c, so that it works for all VFSes. Add the pPager->noLock boolean for clarity. (check-in: [725c1c14] user: drh branch: win32-none, size: 281401)
01:20
[52b7f435] part of check-in [1829c38c] Avoid unnecessary xUnlock operations on temp file. (check-in: [1829c38c] user: drh branch: win32-none, size: 280995)
01:13
[5c296b58] part of check-in [71f152c8] Add the immutable=TRUE query parameter and SQLITE_IOCAP_IMMUTABLE, either of which prevents locking of the database and omits tests for existance of journal files. (check-in: [71f152c8] user: drh branch: win32-none, size: 280974)
2014-04-24
13:20
[ddf6e995] part of check-in [34155c40] Add sqlite3_log() diagnostic messages for a specific type of corruption where the file size is reported to be too small relative to the size in the header. This branch is intended to help debug a specific problem reported from the wild and is not for general use. (check-in: [34155c40] user: drh branch: filesize-debug, size: 267537)
2014-04-04
14:12
[ab62a242] part of check-in [e54330b4] Ensure the "PRAGMA journal_mode=WAL" works coming from any other journal_mode with ATTACH-ed databases. (check-in: [e54330b4] user: drh branch: trunk, size: 280782)
2014-03-07
14:57
[97a8908b] part of check-in [e5b17a9d] Improved comment on the pager.c PERSIST rollback journal delete logic inside of hasHotJournal(). No changes to code. (check-in: [e5b17a9d] user: drh branch: trunk, size: 280838)
03:31
[ab9b5331] part of check-in [1c318ef3] Revise change from the previous check-in to clarify the situation when handling open journal files, regardless of journal mode. (check-in: [1c318ef3] user: mistachkin branch: trunk, size: 280681)
02:29
[f5805e0e] part of check-in [fdc651e2] Avoid calling sqlite3OsDelete() on a file that is open, since this causes Windows to run *very* slowly. Comes up on error recovery in journal_mode=PERSIST. (check-in: [fdc651e2] user: mistachkin branch: trunk, size: 280718)
2014-02-08
13:22
[0ffa313a] part of check-in [35f2793d] Fix a harmless compiler warning in VS2013. (check-in: [35f2793d] user: drh branch: branch-3.8.3, size: 280630)
2013-12-13
20:45
[efa92369] part of check-in [bc5febef] Performance optimizations in the pager_write() routine of pager.c. (check-in: [bc5febef] user: drh branch: trunk, size: 280630)
19:48
[3436cc9c] part of check-in [e50ff39a] Reduce the number of calls to the subjRequiresPage() routine inside of pager. (check-in: [e50ff39a] user: drh branch: trunk, size: 280562)
19:35
[4757194b] part of check-in [e00f37e2] Create and use a new pager interface sqlite3PagerUnrefNotNull() that works just like sqlite3PagerUnref() but guarantees that its argument is not a NULL pointer. (check-in: [e00f37e2] user: drh branch: trunk, size: 280589)
2013-12-11
14:17
[95a56849] part of check-in [9ff4dfe1] Merge in the latest trunk changes. (check-in: [9ff4dfe1] user: drh branch: zipvfs-multifile-commit, size: 280452)
11:00
[9bca8472] part of check-in [a7e5fcd6] Fix harmless compiler warnings. (check-in: [a7e5fcd6] user: drh branch: trunk, size: 280177)
2013-12-10
17:34
[994b3ee3] part of check-in [46231af9] Use SQLITE_FCNTL_SYNC instead of SQLITE_FCNTL_SYNC_OMITTED. Add documentation in for FCNTL_SYNC and FCNTL_COMMIT_PHASETWO. (check-in: [46231af9] user: dan branch: zipvfs-multifile-commit, size: 280447)
16:35
[458c580b] part of check-in [3ee736a3] Merge changes from the trunk. (check-in: [3ee736a3] user: dan branch: zipvfs-multifile-commit, size: 280455)
16:27
[994fc67f] part of check-in [d9a5f44f] Fix handling of errors returned by the SQLITE_FCNTL_OMIT_SYNCED file-control. (check-in: [d9a5f44f] user: dan branch: zipvfs-multifile-commit, size: 280749)
2013-12-09
20:42
[b28711af] part of check-in [32fb1784] Modify the way some internal file-controls are invoked. In order to support multi-file transactions in the zipvfs extension. (check-in: [32fb1784] user: dan branch: zipvfs-multifile-commit, size: 280696)
19:25
[19203eff] part of check-in [ba9eef5f] Minor performance optimizations in pager.c. (check-in: [ba9eef5f] user: drh branch: trunk, size: 280172)
2013-12-08
19:54
[061d0b41] part of check-in [fbcc1a3e] Interchange two conditions in an "if" statment in sqlite3PagerAcquire() for very slight (0.06%) overall performance increase. (check-in: [fbcc1a3e] user: drh branch: trunk, size: 280466)
2013-12-07
16:45
[d27dc8aa] part of check-in [9c59f5af] Back out the new device capability. The determination of whether or not a file has moved is now done strictly using a file-control. (check-in: [9c59f5af] user: drh branch: detect-moved-db, size: 280466)
12:29
[6aa7d8ec] part of check-in [2b1884dc] Actually look at i-node numbers to determine whether or not the database file has moved. (check-in: [2b1884dc] user: drh branch: detect-moved-db, size: 280440)
2013-12-06
17:23
[93887430] part of check-in [28348f2a] Only error out on a database file move when attempting to start a write transaction. Assume read transactions are still safe. And make the error SQLITE_READONLY_DBMOVED instead of SQLITE_IOERR_NODB. (check-in: [28348f2a] user: drh branch: detect-moved-db, size: 280425)
15:37
[3648e602] part of check-in [8759a8e4] Add code to detect if the database file is moved or deleted out from under SQLite and return an SQLITE_IOERR_NODB. (check-in: [8759a8e4] user: drh branch: detect-moved-db, size: 280339)
2013-08-21
23:42
[2aa4444f] part of check-in [617e23ec] Simplify the btreeGetPage() routine so that it uses a single flag parameter in place of two boolean parameters. (check-in: [617e23ec] user: drh branch: trunk, size: 279332)
22:54
[7e9130d5] part of check-in [9ae1f9ce] Minor performance tweaks to the pager. (check-in: [9ae1f9ce] user: drh branch: trunk, size: 279344)
2013-08-16
20:42
[7c999137] part of check-in [cdb181c0] Add the cache_spill pragma. (check-in: [cdb181c0] user: drh branch: cache_spill, size: 279425)
2013-07-06
17:57
[5d2f7475] part of check-in [0ae7e75b] Drop any existing mapping of the database file when exiting the pager "error state", as it may at this point be too large for the database file. Do not invoke file-control MMAP_SIZE if the database file handle does not support xFetch and xUnfetch (on the grounds that xUnfetch(0) calls to invalidate the mapping cannot be made). (check-in: [0ae7e75b] user: dan branch: trunk, size: 278503)
2013-05-29
17:48
[79df56da] part of check-in [d5b084e9] Updates to the Codec interface to support codecs on attached databases and to allow rekeying in the middle of a transaction. These changes are only applicable if SQLite is compiled with SQLITE_HAS_CODEC. (check-in: [d5b084e9] user: drh branch: trunk, size: 278452)
2013-05-28
12:11
[865a09d9] part of check-in [a0d5cc93] Many small harmless comment changes. Removal of obsolete comments and fixing misspelled words. No changes to code. (check-in: [a0d5cc93] user: drh branch: trunk, size: 278377)
2013-05-23
10:13
[3709c5c9] part of check-in [40cfde8b] Avoid unnecessary calls to FCNTL_SIZE_HINT. Return an error to the user if the file-control invoked by "PRAGMA mmap_size" returns a value other than SQLITE_OK or SQLITE_NOTFOUND. (check-in: [40cfde8b] user: dan branch: trunk, size: 278386)
2013-05-02
17:37
[49e23f98] part of check-in [b81e87e7] Minor fixes for compilation with SQLITE_OMIT_WAL defined. (check-in: [b81e87e7] user: dan branch: trunk, size: 278365)
2013-04-26
18:36
[4a9160d2] part of check-in [c47144e9] Avoid unnecessarily reseting the pager cache after committing a transaction that takes advantage of the SQLITE_IOCAP_ATOMIC related optimization. (check-in: [c47144e9] user: dan branch: trunk, size: 278331)
2013-04-16
14:52
[6c3a8a5d] part of check-in [340cca30] Disable memory-mapped I/O when the codec is enabled. (check-in: [340cca30] user: drh branch: trunk, size: 277969)
2013-04-15
17:03
[a55adacb] part of check-in [ea1404a1] Refactoring the mmap interface. The controlling pragma is now "mmap_size" instead of "mmap_limit". Also change SQLITE_CONFIG_MMAP_LIMIT and SQLITE_FCNTL_MMAP_LIMIT to SQLITE_CONFIG_MMAP_SIZE and SQLITE_FCNTL_MMAP_SIZE, respecctively. The default mmap_size is now always 0, meaning that memory mapped I/O is off by default. There is a new compile-time option SQLITE_MAX_MMAP_SIZE that determines a hard upper bound on the mmap_size. Setting SQLITE_MAX_MMAP_SIZE to zero disables the memory-mapped I/O logic and causes it to be omitted from the build. An extra argument is added to SQLITE_CONFIG_MMAP_SIZE that can optionally lower the SQLITE_MAX_MMAP_SIZE at start-time. The SQLITE_MAX_MMAP_SIZE is zero for platforms where we know that it does not work, meaning that it cannot be turned on by mistake on those platforms. (check-in: [ea1404a1] user: drh branch: trunk, size: 277914)
2013-04-10
23:48
[28f45e60] part of check-in [be7d2c54] Add new primary error codes SQLITE_NOTICE and SQLITE_WARNING for use with sqlite3_log(). Add new extended error codes SQLITE_NOTICE_RECOVER_WAL and SQLITE_NOTICE_RECOVER_ROLLBACK to use with sqlite3_log() messages that occur on each recovery. (check-in: [be7d2c54] user: drh branch: trunk, size: 277924)
2013-04-09
19:19
[fc108b8d] part of check-in [96f04d99] Check in the instrumented code for the mptest test case that appears to show a spontaneously disappearing journal file. (check-in: [96f04d99] user: dan branch: missing-journal-file, size: 277739)
18:36
[cc60816e] part of check-in [7cd3f6cd] Change the rollback journal so that it invokes sqlite3_log() make a record of a recovery, just as the WAL journal does. (check-in: [7cd3f6cd] user: drh branch: trunk, size: 277903)
2013-04-08
20:47
[eb6d272f] part of check-in [8a4314a3] Disable the use of memory-mapped I/O if the SQLITE_DISABLE_MMAP macro is defined. Automatically define this macro for OpenBSD and QNX. Other systems are likely to be added to the disabled list over time. (check-in: [8a4314a3] user: drh branch: trunk, size: 277657)
2013-04-03
13:09
[2e68df46] part of check-in [2d9f1327] Change the mmap_limit pragma to report the new limit, or to report the existing limit if called with no arguments. Report the default mmap_limit as part of PRAGMA compile_options. Set the default mmmap_limit to 0 for all systems other than linux, mac, windows, and solaris. (check-in: [2d9f1327] user: drh branch: experimental-mmap, size: 277371)
2013-04-02
18:31
[e26184d4] part of check-in [d641d3d2] Change an assert in pager.c to acknowledge that it is possible for sqlite3PagerRollback() to return SQLITE_CORRUPT. (check-in: [d641d3d2] user: dan branch: experimental-mmap, size: 277372)
01:45
[46fa7d8b] part of check-in [793ba4e9] Reorder two conditions to make coverage testing easier. (check-in: [793ba4e9] user: drh branch: experimental-mmap, size: 277350)
00:41
[37ac3175] part of check-in [3628e86b] Remove an unreachable condition from pager.c. (check-in: [3628e86b] user: drh branch: experimental-mmap, size: 277350)
00:15
[95e7a64b] part of check-in [01ffdabb] Always send the SQLITE_FCNTL_MMAP_LIMIT pragma to the VFS, even if the limit is zero and even if the VFS does not support xFetch(). (check-in: [01ffdabb] user: drh branch: experimental-mmap, size: 277360)
2013-04-01
22:38
[072512d0] part of check-in [78141d0a] Add the SQLITE_CONFIG_MMAP_LIMIT configuration option for overriding the SQLITE_DEFAULT_MMAP_LIMIT compile-time setting. Enhance "PRAGMA mmap_limit" so that without a specific database name, it sets the limit on all database files and changes the default for any future databases that might be added using ATTACH. (check-in: [78141d0a] user: drh branch: experimental-mmap, size: 277399)
2013-03-26
20:32
[30009ae5] part of check-in [e7698cba] Change os_unix.c to use either one or two mappings internally. (check-in: [e7698cba] user: dan branch: two-mappings, size: 277292)
14:36
[2b9980e8] part of check-in [611bd824] Change the name of the Pager.pFree field to Pager.pMmapFreelist. (check-in: [611bd824] user: drh branch: experimental-mmap, size: 277368)
01:07
[8ac98fd9] part of check-in [a850c731] Previous check-in accidently left mmap turned off by default. This checkin fixes that. Unfortunately, shared.test is now segfaulting. All other veryquick tests appear to work, however. (check-in: [a850c731] user: drh branch: experimental-mmap, size: 277312)
2013-03-25
23:09
[c532d51c] part of check-in [1b37c4ef] Memory-mapped I/O is now on by default. The "PRAGMA mmap_limit(N)" can be used to issue a hint to the VFS to limit mmap space to N bytes. The VFS is free to ignore that hint if desired. However, if "PRAGMA mmap_limit(0)" is used, xFetch is never called. (check-in: [1b37c4ef] user: drh branch: experimental-mmap, size: 277266)
19:57
[4e1b55e7] part of check-in [a607d63f] Merge all recent trunk changes into the experimental-mmap branch. (check-in: [a607d63f] user: drh branch: experimental-mmap, size: 277458)
17:00
[d0cdf476] part of check-in [115b8305] Change the signature of the xUnfetch method to "int (*xUnfetch)(sqlite3_file*, sqlite3_int64 iOfst, void *p)". (check-in: [115b8305] user: dan branch: experimental-mmap, size: 277459)
14:31
[2dd59f36] part of check-in [bbcaab3e] Do not return SQLITE_IOERR when the user attempts to open a small file that is not a database with mmap enabled. Instead return SQLITE_NOTADB. (check-in: [bbcaab3e] user: dan branch: experimental-mmap, size: 277350)
13:50
[3da35f32] part of check-in [5885ba6c] Fix a case in the pager where an xFetch() reference was being leaked following an OOM error. (check-in: [5885ba6c] user: dan branch: experimental-mmap, size: 277372)
2013-03-23
21:00
[2e63de71] part of check-in [1431be95] Replace the sqlite3_io_methods.xMremap interface with sqlite3_io_methods.xFetch and xUnfetch. (check-in: [1431be95] user: dan branch: experimental-mmap, size: 277329)
14:20
[cffcfe75] part of check-in [8dbe89d0] Fix a case where a checkpoint operation could write to an invalid part of a memory mapped region. (check-in: [8dbe89d0] user: dan branch: experimental-mmap, size: 281100)
2013-03-22
18:20
[12b8ff12] part of check-in [d190ddab] Allow the database file to be memory mapped in wal mode. (check-in: [d190ddab] user: dan branch: experimental-mmap, size: 281004)
2013-03-21
21:20
[3e9a1593] part of check-in [6f6e2d50] Many spelling fixes in comments. No changes to code. (check-in: [6f6e2d50] user: mistachkin branch: trunk, size: 271636)
20:39
[52000101] part of check-in [5c9e9df2] Fix cases where xRead() was being used to read from a memory mapped part of the database file. (check-in: [5c9e9df2] user: dan branch: experimental-mmap, size: 279349)
20:00
[5ee2ec6a] part of check-in [c8eac290] Avoid calling xRead() on a part of the database file that is memory mapped. (check-in: [c8eac290] user: dan branch: experimental-mmap, size: 278895)
2013-03-20
14:26
[d59af9a7] part of check-in [14135da3] When possible, use memory mapping when appending new pages to a database file. (check-in: [14135da3] user: dan branch: experimental-mmap, size: 278744)
2013-03-19
19:28
[78b65bf9] part of check-in [6183f1bd] Add the sqlite3_io_methods.xMremap() method to the VFS interface. Also "PRAGMA mmap_size". (check-in: [6183f1bd] user: dan branch: experimental-mmap, size: 278492)
2013-03-16
20:19
[495c5344] part of check-in [f8ca5622] When possible, use memcpy() to and from the mapped region instead of xWrite() and xRead(). (check-in: [f8ca5622] user: dan branch: experimental-mmap, size: 276883)
2013-03-15
19:13
[bdbcfe67] part of check-in [022fdc98] Fix a dropped error code in pager.c. (check-in: [022fdc98] user: dan branch: experimental-mmap, size: 276186)
18:29
[73457851] part of check-in [b387e2f9] Allow read-only cursors to use mmap pages even if there is an open write transaction. (check-in: [b387e2f9] user: dan branch: experimental-mmap, size: 276171)
2013-03-14
18:34
[4e7e66c2] part of check-in [6f21d9cb] Use mmap() to read from the database file in rollback mode. This branch is unix only for now. (check-in: [6f21d9cb] user: dan branch: experimental-mmap, size: 274696)
2013-03-05
15:09
[582f8da5] part of check-in [39247b14] Add extended error code SQLITE_READONLY_ROLLBACK. Returned if a read-only connection cannot read the database because doing so would require it to roll back a hot-journal. (check-in: [39247b14] user: dan branch: experimental, size: 271637)
2013-03-04
16:35
[bbe1eca2] part of check-in [090a4712] Remove an assert() statement that has been incorrect since the recent incremental-vacuum related changes in [26e235b7a4]. (check-in: [090a4712] user: dan branch: trunk, size: 271538)
2013-03-01
21:01
[9e51c2a3] part of check-in [f476eace] Fix an overly restrictive assert() in the pager. (check-in: [f476eace] user: drh branch: trunk, size: 270730)
2013-02-23
16:40
[0dbf5ff5] part of check-in [b73847f1] If a rollback mode transaction reduces the size of the database file, avoid actually truncating the file until after the transaction has been committed (but before the db has been unlocked). This means pages that are removed from the database by truncating the file need not be journalled. (check-in: [b73847f1] user: dan branch: incr-vacuum-opt, size: 270672)
2012-12-05
11:30
[4092c907] part of check-in [bdceca27] Since errors are ignored anyway, use sqlite3OsFileControlHint() instead of OsFileControl() to invoke the SQLITE_FCNTL_BUSY_HANDLER file-control. (check-in: [bdceca27] user: dan branch: trunk, size: 271123)
10:01
[521251dd] part of check-in [11aa47b0] If the atomic-write property is enabled, a transaction may be committed in journal_mode=DELETE mode without ever actually creating a journal file on disk. In this case, do not attempt to unlink() the journal file when committing the transaction. (check-in: [11aa47b0] user: dan branch: trunk, size: 271119)
2012-11-09
20:17
[ed53fe75] part of check-in [bed9c172] Change os_unix.c to propagate ENOENT errors back to sqlite as SQLITE_IOERR_DELETE_NOENT. Have SQLite ignore these where they are benign and propagate them back to the caller where they may indicate a file-system malfunction of some description. (check-in: [bed9c172] user: dan branch: trunk, size: 271051)
2012-10-17
13:15
[ee59fef3] part of check-in [bf44d73d] Remove an incorrect "#ifndef SQLITE_OMIT_AUTOVACUUM" from pager. (check-in: [bf44d73d] user: drh branch: trunk, size: 270993)
2012-10-13
20:55
[36642c09] part of check-in [ae025cae] Mark an always-true conditional as such. (check-in: [ae025cae] user: drh branch: zero-byte-backup-fix, size: 271077)
2012-10-10
12:14
[82f7182b] part of check-in [96247853] Define the sqlite3PagerWalFramesize() function even if SQLITE_OMIT_WAL is used. (check-in: [96247853] user: drh branch: trunk, size: 271069)
2012-10-01
20:12
[a7ad8c38] part of check-in [8b5f617c] Fix several compiler warnings seen with MSVC. (check-in: [8b5f617c] user: mistachkin branch: msvcWarnings, size: 271069)
18:44
[52bfc72f] part of check-in [1262d2f4] Add SQLITE_FCNTL_BUSYHANDLER. Invoked to provide access to the busy-handler callback to custom VFS implementations. (check-in: [1262d2f4] user: dan branch: trunk, size: 271060)
06:50
[9f5f2823] part of check-in [6b4ff83b] Ensure that the value returned by xSectorSize() is reasonable (currently defined as between 2^5 and 2^16 bytes) before using it to calculate the amount of padding to add to a wal file. (check-in: [6b4ff83b] user: dan branch: trunk, size: 270821)
2012-09-28
10:57
[403e8cfa] part of check-in [6a5c59dd] Merge the latest trunk changes (PRAGMA busy_timeout and the ORDER BY query planner enhancements) into the apple-osx branch. (check-in: [6a5c59dd] user: drh branch: apple-osx, size: 272240)
2012-09-15
13:39
[9c59818c] part of check-in [8711a844] Make sure the name of rollback journal files are double-zero terminated when they are passed into the VFS. (check-in: [8711a844] user: drh branch: trunk, size: 270642)
2012-08-31
14:10
[85fec76b] part of check-in [bc9b9cd0] Merge in latest trunk changes. (check-in: [bc9b9cd0] user: dan branch: apple-osx, size: 272240)
2012-08-25
10:01
[5665fa9e] part of check-in [9b19b847] Fix all known instances of 'repeated the' style typos in comments. No changes to code. (check-in: [9b19b847] user: mistachkin branch: trunk, size: 270642)
2012-06-08
01:13
[ca8424ef] part of check-in [9d1b8515] Merge trunk changes into the apple-osx branch. (check-in: [9d1b8515] user: drh branch: apple-osx, size: 272248)
2012-06-07
07:24
[e381c118] part of check-in [506008f0] Fix a malloc/free mismatch in pager.c (sqlite3_free() called on a buffer allocated by sqlite3DbMalloc()). (check-in: [506008f0] user: dan branch: trunk, size: 270650)
2012-06-06
23:59
[a1147e04] part of check-in [31fe1985] Fix harmless Clang warnings. (check-in: [31fe1985] user: drh branch: trunk, size: 270630)
2012-05-27
01:19
[9d4d6406] part of check-in [595dfdbf] Have user interfaces report out the filename of in-memory databases as an empty string, as it always has. This simplifies the changes. (check-in: [595dfdbf] user: drh branch: shared-cache-memdb, size: 270619)
00:11
[f3215101] part of check-in [997ef5f6] Fix corner-case problems with shared-cache for in-memory databases. (check-in: [997ef5f6] user: drh branch: shared-cache-memdb, size: 270191)
2012-05-26
20:08
[5a86e85e] part of check-in [e3ad61e0] Only allow :memory: databases to share cache if there are created using a URI filename. This minimizes the risk of breakages in legacy applications that have shared-cache enabled but also use :memory: databases which they expect to keep separate. (check-in: [e3ad61e0] user: drh branch: shared-cache-memdb, size: 270175)
18:06
[5b14be81] part of check-in [4590e433] Enable the use of shared cache for an in-memory database, so that separate database connections can share the same in-memory database. (check-in: [4590e433] user: drh branch: shared-cache-memdb, size: 270095)
2012-05-11
00:56
[544cc84d] part of check-in [66708685] Make sure the WAL file is deleted when changing to DELETE journal mode. (check-in: [66708685] user: drh branch: apple-osx, size: 271571)
2012-05-09
22:36
[c296b303] part of check-in [65479294] Added support for SQLITE_ENABLE_PERSIST_WAL compile time macro, retrieving lastErrno from WAL file and setting last errno when writes fail due to space constraints (check-in: [65479294] user: adam branch: apple-osx, size: 271376)
2012-05-05
01:03
[69429aeb] part of check-in [2a99c007] Merge the latest trunk changes into the apple-osx branch. (check-in: [2a99c007] user: drh branch: apple-osx, size: 271101)
2012-04-27
16:38
[bb5635dd] part of check-in [1e51bffe] Fix a minor deviation from the coding style guidelines. (check-in: [1e51bffe] user: drh branch: trunk, size: 269973)
2012-03-31
02:46
[ce4fde59] part of check-in [18ec60ca] Merge all the latest trunk changes into the apple-osx branch. (check-in: [18ec60ca] user: drh branch: apple-osx, size: 271098)
2012-03-24
19:44
[85988507] part of check-in [3cb6a879] Add SQLITE_DBSTATUS_CACHE_WRITE. Used to query a database connection for the cumulative number of database pages written. (check-in: [3cb6a879] user: dan branch: fts4-incr-merge, size: 269970)
2012-03-05
16:39
[a5bacc1a] part of check-in [504bf490] Pull in all the latest trunk changes. (check-in: [504bf490] user: drh branch: apple-osx, size: 270246)
2012-02-24
14:33
[3955b62c] part of check-in [3130275c] Add #ifdef SQLITE_ENABLE_ZIPVFS around those bits of code that are only used by ZIPVFS. (check-in: [3130275c] user: drh branch: trunk, size: 269118)
2012-02-23
16:45
[25733ab9] part of check-in [f0640615] Fix a typo made inside an assert() statement in the previous commit. (check-in: [f0640615] user: dan branch: trunk, size: 269083)
15:35
[af82f106] part of check-in [786e24dc] Add the sqlite3PagerWalFramesize() function to pager.c. This is used by zipvfs. (check-in: [786e24dc] user: dan branch: trunk, size: 269083)
2012-02-10
18:18
[e3430315] part of check-in [e2485986] Pull the latest trunk changes into the apple-osx branch. (check-in: [e2485986] user: drh branch: apple-osx, size: 269753)
2012-01-20
15:05
[afadbdf1] part of check-in [d7374568] Cherrypick the fix from [629108c8e5376f989] into the nx-devkit branch. (check-in: [d7374568] user: drh branch: nx-devkit, size: 268008)
2012-01-17
15:29
[2d892f7b] part of check-in [96900c47] Remove the undocumented PRAGMA omit_readlock hack. (check-in: [96900c47] user: drh branch: trunk, size: 268625)
2012-01-14
14:13
[0c6cebb3] part of check-in [2cc414cd] Merge the latest trunk changes into the apple-osx branch. (check-in: [2cc414cd] user: drh branch: apple-osx, size: 270179)
2012-01-11
16:16
[4d58c983] part of check-in [9e31a275] Remove code made unreachable by the enhancement of the previous check-in. (check-in: [9e31a275] user: drh branch: trunk, size: 269051)
15:47
[a3ef71cb] part of check-in [629108c8] Make the pager less vulnerable to problems caused by shifting sector sizes when rolling back a hot journal. (check-in: [629108c8] user: drh branch: trunk, size: 269154)
2012-01-10
23:18
[99ee9e52] part of check-in [cb774b26] Only require double-zero terminators on database filenames, not any every files supplied to the xOpen method. This backs out [2544f233f1]. Also refactor the fillInUnixFile() routine in os_unix.c to reduce the number of parameters. (check-in: [cb774b26] user: drh branch: trunk, size: 269084)
17:59
[355f00af] part of check-in [722735a4] Refactor sqlite3OsFileControlNoFail() into sqlite3FileControlHint(). (check-in: [722735a4] user: drh branch: trunk, size: 270003)
17:28
[f2a3a87d] part of check-in [2544f233] Avoid passing strings with a single nul-terminator (two are required) to the VFS xOpen() method from within the code that checks to see if a master-journal file may be safely deleted. (check-in: [2544f233] user: dan branch: trunk, size: 270052)
16:56
[e7c940ef] part of check-in [af59b182] Add function sqlite3OsFileControlNoFail(), which is the same as sqlite3OsFileControl() except that it does not simulate OOM errors. This saves adding calls to the BenignMalloc() functions around each of the invocations of sqliteOsFileControl() that ignore the return code. (check-in: [af59b182] user: dan branch: trunk, size: 269133)
00:24
[818ae6c4] part of check-in [38bc4236] Remove the BenignMalloc() from around the call to FCNTL_OVERWRITE. Add new ones around sqlite3OsDelete(). Fix an assert that causes problems for the nx-devkit. (check-in: [38bc4236] user: drh branch: trunk, size: 269133)
2012-01-03
21:54
[f87fa939] part of check-in [8a048423] Pull all the latest trunk changes over into the apple-osx branch. (check-in: [8a048423] user: drh branch: apple-osx, size: 270231)
14:50
[5b89ab92] part of check-in [d73e93cf] Make sure filenames passed into sqlite3OsOpen() always have the extra zero-terminators needed by sqlite3_uri_parameter(). (check-in: [d73e93cf] user: drh branch: trunk, size: 269103)
2012-01-02
14:50
[a21a3191] part of check-in [fd3822f1] Have SQLITE_FCNTL_SYNC_OMITTED use the normal method of returning an error code. (check-in: [fd3822f1] user: dan branch: trunk, size: 269093)
2011-12-30
18:16
[4ee26909] part of check-in [c17a3f5e] Add calls to the BenignMalloc() functions around the SQLITE_FCNTL_SIZE_HINT call in pager.c. (check-in: [c17a3f5e] user: dan branch: trunk, size: 269039)
09:00
[0ae6079d] part of check-in [6a71ba9c] Change an implicit i64-to-int cast in pager.c to an explicit cast. (check-in: [6a71ba9c] user: dan branch: trunk, size: 268977)
2011-12-23
01:04
[d03fb1de] part of check-in [6191c5e4] Change the name ZERO_DAMAGE to the more descriptive POWERSAFE_OVERWRITE. The query parameter used to control this device characteristic is now "psow". (check-in: [6191c5e4] user: drh branch: statvfs, size: 268947)
2011-12-22
02:10
[fb35a2c3] part of check-in [995ec8a4] Merge recent trunk changes into the statvfs branch. (check-in: [995ec8a4] user: drh branch: statvfs, size: 268865)
2011-12-21
23:38
[6277bebe] part of check-in [42f31f19] Cherry-pick the SQLITE_DIRECT_OVERFLOW_READ fix for ticket [ac0ff496b7e] of changes [c5256b59ad] and [c723e3e18a] into the nx-devkit branch. (check-in: [42f31f19] user: drh branch: nx-devkit, size: 267938)
18:04
[523c64f6] part of check-in [c723e3e1] Fix other problems where 32-bit integer overflow may cause a problem. Two that require an improbably large sub-journal and two in test harness code. Ticket [ac0ff496b7e2] (check-in: [c723e3e1] user: dan branch: trunk, size: 268232)
2011-12-17
20:02
[c9bd2f71] part of check-in [1dde96c9] For improved clarity of presentation, refactor some of the code associated with ZERO_DAMAGE and sector-size. (check-in: [1dde96c9] user: drh branch: statvfs, size: 268850)
19:49
[2fb503c7] part of check-in [a0be6ea4] Add SQLITE_IOCAP_ZERO_DAMAGE and enable it for both unix and windows. Use this device characteristic to reduce the required work in journaling. A side effect is that this changes the default page exists back to 1024 even with the use of statvfs(). (check-in: [a0be6ea4] user: drh branch: statvfs, size: 268802)
2011-12-16
21:26
[c7c32a1c] part of check-in [9799241f] Enhance the WAL header sync so that it honors the various synchronous pragmas, settings, and device characteristics. (check-in: [9799241f] user: drh branch: wal-header-sync, size: 268217)
2011-12-08
21:08
[9d31fa7d] part of check-in [59e0d4f3] Merge the latest trunk changes into the apple-osx branch. (check-in: [59e0d4f3] user: drh branch: apple-osx, size: 269012)
2011-11-16
19:29
[d981f3bf] part of check-in [3f58e7c8] Add the sqlite3_db_release_memory() interface and the shrink_memory pragma. (check-in: [3f58e7c8] user: drh branch: trunk, size: 267923)
2011-11-14
12:34
[196b112b] part of check-in [638a39bb] Further work on mmap(). Still does not work right - autovacuum tests are the first to fail. (check-in: [638a39bb] user: drh branch: mmap-experimental, size: 269098)
01:55
[6b3a7765] part of check-in [09be42d5] Begin making experimental changes to use mmap() for reading content from a database. The code compiles, but crashes on the test suite. (check-in: [09be42d5] user: drh branch: mmap-experimental, size: 268644)
2011-11-06
05:06
[db33d4bf] part of check-in [5dbfaed8] Move function sqlite3PagerClearCache() out of the "ifndef SQLITE_OMIT_WAL" block and into an "ifndef SQLITE_OMIT_VACUUM" block. (check-in: [5dbfaed8] user: dan branch: trunk, size: 267783)
2011-10-21
17:18
[52530f16] part of check-in [be62ef05] Merge the latest trunk changes into the apple-osx branch. (check-in: [be62ef05] user: drh branch: apple-osx, size: 268838)
14:27
[ad62daa0] part of check-in [07159e84] If an error occurs while writing to the database file during a VACUUM, discard the contents of the in-memory cache. This is required as if the database is a zipvfs database, the contents of the cache may be inconsistent with respect to the database as stored on disk. (check-in: [07159e84] user: dan branch: trunk, size: 267749)
2011-10-14
21:49
[60c80db5] part of check-in [60fee957] Add assert() statements and eliminate needless variable assignments in order to get the clang scan-build utility to report zero problems against the SQLite core. Clang's static analysis did find one real problem - but it was in the command-line shell, not in the SQLite core. (check-in: [60fee957] user: drh branch: trunk, size: 267560)
2011-10-11
14:19
[b23e50bc] part of check-in [7e2c4898] Merge the latest trunk changes into the apple-osx branch. (check-in: [7e2c4898] user: drh branch: apple-osx, size: 268656)
2011-10-10
23:53
[5cafaf38] part of check-in [6cb43f6c] Forward port the Apple-specific changes from [db5b7b778c] in the apple-osx-377 branch. Fix this up so that it will compile and run on Linux. (check-in: [6cb43f6c] user: drh branch: apple-osx, size: 267995)
22:11
[4bee5b51] part of check-in [db5b7b77] Merging in cherry picked diffs for persist wal, alloc padding, wal-safe vacuum and sqlite3_file_control based lockstate checking (check-in: [db5b7b77] user: adam branch: apple-osx-377, size: 267955)
2011-09-22
14:41
[8a6ac3e0] part of check-in [5100b6e9] Add the SQLITE_DB_STATUS_CACHE_HIT and MISS options. For querying the number of cache hits and misses on a per-connection basis. (check-in: [5100b6e9] user: dan branch: trunk, size: 267567)
2011-09-20
15:53
[eb09ad62] part of check-in [89272357] Add SQLITE_STMTSTATUS_CACHE_HIT/MISS and SQLITE_DB_STATUS_CACHE_HIT/MISS. For querying the number of pager cache hits and misses on a statement or connection basis. (check-in: [89272357] user: dan branch: cache-stats, size: 267308)
2011-09-19
20:32
[984dc40d] part of check-in [ade72b18] Merge in all trunk changes through the 3.7.8 release. (check-in: [ade72b18] user: drh branch: apple-osx, size: 267930)
11:57
[15d10371] part of check-in [69823ed1] Remove a stray merge-sort related change from pager.c and pager.h. (check-in: [69823ed1] user: dan branch: trunk, size: 266906)
2011-09-14
19:05
[e36f6225] part of check-in [2456b4d0] Merge in the latest changes from trunk. (check-in: [2456b4d0] user: drh branch: apple-osx, size: 268034)
2011-09-02
21:42
[5545863e] part of check-in [a9a64592] Remove some dead code. Fix a faulty assert(). Improve some variable names. (check-in: [a9a64592] user: drh branch: merge-sort, size: 267010)
2011-08-26
19:18
[382b3dd2] part of check-in [55af8003] Merge the latest trunk changes into the apple-osx branch. (check-in: [55af8003] user: drh branch: apple-osx, size: 268686)
00:34
[817f7f71] part of check-in [c71d7320] Create a new pager type, PAGER_SORTER, for use in the external merge sort. Such pagers are always held in memory but do report when they are under memory pressure by calling pagerStress. (check-in: [c71d7320] user: drh branch: trunk, size: 267662)
2011-06-24
20:47
[e3688b37] part of check-in [34f0efa2] Merging local changes to apple-osx (check-in: [34f0efa2] user: adam branch: apple-osx, size: 267890)
2011-06-01
11:26
[f582ebb4] part of check-in [2e5a912a] Toward version 3.7.5.1. This check-in updates the version number and also patches the pager so that it never spills cache while in WAL mode. The latter patch fixes ticket [2d1a5c67dfc23] and also prevents excessive WAL file sizes if the pager cache starts thrashing. A few test cases fail. (check-in: [2e5a912a] user: drh branch: branch-3.7.5, size: 265255)
2011-05-31
17:08
[2cf3bad8] part of check-in [2c6b5a28] Merge the latest trunk changes into the wal-readonly branch. (check-in: [2c6b5a28] user: drh branch: wal-readonly, size: 267026)
2011-05-20
01:49
[120550e7] part of check-in [3e8a29ff] Mark an unreachable branch in the recent WAL problem as unreachable. (check-in: [3e8a29ff] user: drh branch: trunk, size: 266866)
2011-05-19
02:34
[928d50d3] part of check-in [57912327] Bring the apple-wal-readonly branch up to date with the latest changes in apple-osx, and especially the fix for disappearing WAL transactions. (check-in: [57912327] user: drh branch: apple-wal-readonly, size: 267030)
01:46
[f501684d] part of check-in [e4d0f7ac] Backport the [67bf1c9a88] fix for vanishing WAL transactions due to small cache spillage. Ticket [2d1a5c67dfc236]. Also bump the version number to 3.7.6.3 in preparation for patch release. (check-in: [e4d0f7ac] user: drh branch: branch-3.7.6, size: 266301)
01:21
[4b235855] part of check-in [67bf1c9a] When committing a WAL transaction, make sure at least one page is written to the WAL file so that the WAL subsystem will have a page on which to set the commit flag. Ticket [2d1a5c67dfc236]. (check-in: [67bf1c9a] user: drh branch: trunk, size: 266870)
2011-05-17
20:36
[b7fe4b8e] part of check-in [96d60985] Add the ability to limit filenames to 8+3 using the SQLITE_ENABLE_8_3_NAMES compile-time option together with a URI parameter of "8_3_names=1". (check-in: [96d60985] user: drh branch: trunk, size: 266502)
2011-05-16
21:00
[ebf0411b] part of check-in [db7e500f] Enhance WAL mode so that the WAL file honors the journal size limit set by PRAGMA journal_size_limit. (check-in: [db7e500f] user: drh branch: trunk, size: 266384)
2011-05-11
14:57
[4056376f] part of check-in [671ba5fc] Only open a read-only connection to shared-memory if the "readonly_shm=1" option is specified as part of the database file URI (and if a read-write connection fails). (check-in: [671ba5fc] user: dan branch: wal-readonly, size: 266467)
2011-05-01
22:57
[ff40d2a9] part of check-in [7155e6f3] Backport check-ins [0900e35348f4b9bf3] and [4fead8e714c7e50] to the 3.7.2 branch. These check-ins provide hints to the btree layer for when it is possible to use a hash table rather than a btree to implement an index. The SQLite BTree layer does not use these hints, but alternative btree layers might. (check-in: [7155e6f3] user: drh branch: branch-3.7.2, size: 259946)
2011-04-22
19:37
[24b689bc] part of check-in [b8a8132e] Add the start of the "uri-filenames" feature. (check-in: [b8a8132e] user: dan branch: uri, size: 266307)
2011-04-05
16:09
[055239dc] part of check-in [311d0b61] When committing a WAL transaction, do not write any pages to the WAL file with page numbers greater than the size of the database image in pages. (check-in: [311d0b61] user: dan branch: trunk, size: 265933)
2011-02-24
21:10
[6aa906b6] part of check-in [af475618] Fix a typo in a comment. No changes to code. (check-in: [af475618] user: drh branch: trunk, size: 265439)
2011-02-20
03:32
[5b2210b4] part of check-in [442be135] Make sure the change-counter and SQLite-version fields of the header are set correctly even after vacuuming. This is a backport of changes [0be92a7576] and [04fa1e1690] to address ticket [5d863f876ee]. (check-in: [442be135] user: drh branch: branch-3.7.4, size: 264490)
2011-02-02
16:34
[d62dfc1d] part of check-in [bac7342c] Merge in the blocking-checkpoint enhancement, including the new sqlite3_wal_checkpoint_v2() interface and the PRAGMA wal_checkpoint(full) statement. (check-in: [bac7342c] user: drh branch: trunk, size: 265439)
2011-02-01
18:00
[c22b8531] part of check-in [b9b48dd8] Fix a problem causing builds with SQLITE_OMIT_WAL defined to fail. (check-in: [b9b48dd8] user: dan branch: fts4aux, size: 265154)
2011-01-28
15:46
[b0fcbe30] part of check-in [874bc884] Change pager_truncate() to a different method for extending files while also ensuring that writes are page-size and page-aligned. (check-in: [874bc884] user: drh branch: trunk, size: 265155)
15:07
[3327c903] part of check-in [58577135] When extending a database file, do so by writing one or more page-size chunks of data to the file, instead of just a single byte to the end. (check-in: [58577135] user: dan branch: trunk, size: 265081)
2011-01-25
16:48
[37696d87] part of check-in [f12b5d76] Make sure the return code from doing an xSync is correctly initialized so that a valid return code is produced regardless of the path taken through the logic. (check-in: [f12b5d76] user: drh branch: trunk, size: 264886)
16:20
[c8975ac9] part of check-in [64914980] Change the name of SQLITE_FCNTL_SYNC to SQLITE_FCNTL_SYNC_OMITTED and only send it when PRAGMA synchronous=OFF. Add better documentation to explain what that file-control opcode is used for. (check-in: [64914980] user: drh branch: trunk, size: 264950)
11:33
[eb355fc8] part of check-in [13108ce1] Fix a broken assert() in pager.c. (check-in: [13108ce1] user: dan branch: trunk, size: 264939)
2011-01-17
02:24
[60d79b73] part of check-in [b93f6f3e] Add back an ALWAYS() to regain full test coverage. (check-in: [b93f6f3e] user: drh branch: trunk, size: 264915)
2011-01-16
00:56
[8b6eb723] part of check-in [04fa1e16] Make sure the change-counter and SQLite-version fields of the header are set correctly even when doing a VACUUM with locking_mode=EXCLUSIVE. Ticket [5d863f876ee9561b]. (check-in: [04fa1e16] user: drh branch: trunk, size: 264907)
2011-01-15
18:11
[3e3e5cd3] part of check-in [228e7c34] Fix the change-counter increment for WAL pages so that it works even when invoked from xStress. Ticket [5d863f876ee9561b95e2]. (check-in: [228e7c34] user: drh branch: bug-5d863f87, size: 264854)
17:12
[737025a2] part of check-in [c1e0d09c] Increment the change counter and update the SQLite version number whenever page 1 is added to the WAL. Ticket [5d863f876ee9561b9] (check-in: [c1e0d09c] user: drh branch: bug-5d863f87, size: 264251)
2011-01-11
17:39
[ceceb5e2] part of check-in [b3f2f465] Add the SQLITE_FCNTL_SYNC file-control. (check-in: [b3f2f465] user: dan branch: trunk, size: 263597)
16:09
[a3d1b55d] part of check-in [ece7efce] If a rollback is attempted in journal_mode=off mode, force SQLite to discard the contents of the pager cache before processing any subsequent queries. (check-in: [ece7efce] user: dan branch: trunk, size: 263574)
2010-11-23
20:25
[c0aca5c7] part of check-in [30c26c3b] The previous check-in with changes to the max_page_count pragma was not quite correct. This check-in fixes the problem. (check-in: [30c26c3b] user: drh branch: trunk, size: 263180)
2010-11-19
18:51
[b3e86e5d] part of check-in [ebf74015] Merge the checkpoint_fullfsync pragma and the superlock demonstration into the checkpoint-v2 experimental branch. (check-in: [ebf74015] user: drh branch: blocking-checkpoint, size: 263419)
18:23
[a8b36940] part of check-in [a0698673] Add the checkpoint_fullfsync pragma which enables F_FULLFSYNC on checkpoint operations only, not during ordinary commit fsyncs. (check-in: [a0698673] user: drh branch: trunk, size: 263135)
2010-11-18
12:11
[b46a78a1] part of check-in [72787c01] Modify the interface to the blocking wal-checkpoint functionality. (check-in: [72787c01] user: dan branch: blocking-checkpoint, size: 261746)
2010-11-16
18:56
[7f7587c2] part of check-in [7e3fc2c8] Add experimental command "PRAGMA wal_blocking_checkpoint", which uses the busy-handler to block until all readers have finished in order to ensure the next writer will be able to wrap around to the start of the log file. (check-in: [7e3fc2c8] user: dan branch: blocking-checkpoint, size: 261763)
2010-11-09
20:33
[067ae23d] part of check-in [e0687582] Fix an assert that fired incorrectly when PRAGMA omit_readlock was set. (check-in: [e0687582] user: shaneh branch: trunk, size: 261445)
20:08
[b9809c31] part of check-in [756589ad] Add "PRAGMA checkpoint_fullfsync". Similar to "PRAGMA fullfsync", but enables full fsyncs only during checkpoint operations. Update: This change was added to the trunk by check-in [a069867301de3ca2e17] (check-in: [756589ad] user: dan branch: apple-osx-exp, size: 260498)
00:47
[58befaf9] part of check-in [77b343cf] Experimental changes to test defaulting to fullfsync for WAL mode (check-in: [77b343cf] user: adam branch: apple-osx-exp, size: 260042)
2010-11-04
04:47
[1b0e87de] part of check-in [3104f17e] Include the print_pager_state() function only if SQLITE_DEBUG is defined. (check-in: [3104f17e] user: dan branch: trunk, size: 261424)
2010-11-01
17:38
[c19b0e8d] part of check-in [8dd5c691] If a database file with the WAL flag set is opened in exclusive-locking mode, use heap memory to store the wal-index instead of shared-memory. (check-in: [8dd5c691] user: dan branch: trunk, size: 261376)
2010-10-22
13:55
[d9858b47] part of check-in [f000ac1e] Prevent an assert from failing when opening a zero-length database file with an apparently hot journal with locking_mode=exclusive set. (check-in: [f000ac1e] user: dan branch: trunk, size: 260067)
2010-10-05
17:02
[6c6dde87] part of check-in [471a4efb] Have the pager change to at least WRITER_CACHEMOD state before marking any pages as dirty (instead of immediately after). Otherwise, if an error occurs, the pager may be left in WRITER_LOCKED state with dirty pages in the cache. (check-in: [471a4efb] user: dan branch: trunk, size: 260038)
2010-09-18
19:36
[47600422] part of check-in [e14ef0e8] Make sure the pager cache is cleared if there is any difficulty starting a new read transaction in WAL mode. Ticket [313723c356483eff2a4c4bdd2c]. (check-in: [e14ef0e8] user: drh branch: trunk, size: 259952)
2010-08-31
01:09
[51d77a9d] part of check-in [86bcb9aa] Remove unreachable branches to facilitate test coverage. (check-in: [86bcb9aa] user: drh branch: trunk, size: 259952)
2010-08-30
15:02
[cf462c23] part of check-in [0900e353] Remove the sqlite3BtreeFactory() wrapper routine. All modules now call sqlite3BtreeOpen() directly. (check-in: [0900e353] user: drh branch: trunk, size: 260007)
2010-08-26
05:23
[59ded919] part of check-in [afb2484c] Simplification of changes for SQLITE_OMIT_WAL support in pager.c. (check-in: [afb2484c] user: shaneh branch: trunk, size: 260049)
2010-08-24
18:35
[48556db0] part of check-in [d1ed743b] Changes to support building with SQLITE_OMIT_WAL. (check-in: [d1ed743b] user: shaneh branch: trunk, size: 260099)
01:08
[8f6ff6ca] part of check-in [415c448d] Merge changes through release 3.7.2 into the apple-osx branch. (check-in: [415c448d] user: drh branch: apple-osx, size: 260344)
2010-08-23
18:19
[a5f5d978] part of check-in [21a1e596] Fixes for the SQLITE_CHECK_PAGES debugging feature. (check-in: [21a1e596] user: dan branch: trunk, size: 259988)
2010-08-19
15:11
[3e981517] part of check-in [b9170f29] Modify the code for reading hot-journal files so that it can handle journals generated by versions 3.5.7 and earlier. (check-in: [b9170f29] user: dan branch: trunk, size: 259844)
2010-08-18
02:28
[8b73d7f4] part of check-in [1f5662b7] Fix some compiler warnings in the MSVC build. (check-in: [1f5662b7] user: shaneh branch: trunk, size: 259565)
00:24
[e75ccadf] part of check-in [866e9286] Merge the 3.7.1 pre-release snapshot changes as of 2010-08-18 into the apple-osx branch. (check-in: [866e9286] user: drh branch: apple-osx, size: 259901)
2010-08-17
19:49
[3c0f1bd2] part of check-in [acb171d4] Remove a NEVER() that is actually reachable. (check-in: [acb171d4] user: drh branch: trunk, size: 259546)
19:40
[67193153] part of check-in [3f8c068a] Suppress harmless compiler warning. (check-in: [3f8c068a] user: drh branch: trunk, size: 259553)
18:37
[db2c8d85] part of check-in [d7ed4634] It is no longer possible to reach pagerStress() while in the error state, so put a NEVER() around the error state test of that routine. (check-in: [d7ed4634] user: drh branch: trunk, size: 259553)
18:15
[10cc2672] part of check-in [8ac18523] If an SQLITE_FULL error occurs during rollback or journal finalization, treat it in the same way as SQLITE_IOERR (i.e. require that the pager internals be completely reset before it is next read from or written to). (check-in: [8ac18523] user: dan branch: trunk, size: 259170)
17:25
[ddef1e66] part of check-in [61c64b3a] Changes to pager for improved testability. (check-in: [61c64b3a] user: drh branch: trunk, size: 260297)
2010-08-16
20:02
[5a4fdd06] part of check-in [4271a95c] Remove an superfluous branch from pager.c. (check-in: [4271a95c] user: drh branch: trunk, size: 260219)
2010-08-14
17:12
[6d9ceacc] part of check-in [7dd78eb7] Change sqlite3PagerPagecount() to return void, since the return value was always SQLITE_OK and was never used. (check-in: [7dd78eb7] user: drh branch: trunk, size: 260205)
12:42
[afcd1f6f] part of check-in [68a49f7f] Tweaks to comments in pager.c. Fix two compiler warnings. (check-in: [68a49f7f] user: drh branch: trunk, size: 260224)
2010-08-12
16:36
[4e144b45] part of check-in [02def8f9] If an error occurs in PagerSetPagesize(), set the output variable to the unmodified page-size before returning. (check-in: [02def8f9] user: dan branch: trunk, size: 259555)
11:25
[ff51a76c] part of check-in [228c5b16] Add coverage tests for pager.c. (check-in: [228c5b16] user: dan branch: trunk, size: 259503)
02:41
[39be42c3] part of check-in [45362437] Increase the maximum page size from 32k to 64k. (check-in: [45362437] user: drh branch: trunk, size: 259569)
2010-08-11
18:56
[3fb56c4d] part of check-in [2fa05d01] Improve coverage of pager.c. (check-in: [2fa05d01] user: dan branch: trunk, size: 259746)
2010-08-10
15:46
[b3db7623] part of check-in [42ba43ac] Fix a bug in pager.c causing it to omit the xSync() call required following a hot-journal rollback. (check-in: [42ba43ac] user: dan branch: experimental, size: 258764)
09:58
[6e8316c9] part of check-in [eb3ac895] Add variable pager.dbHintSize, used to limit the number of calls made to the xFileControl(FCNTL_SIZE_HINT) method. (check-in: [eb3ac895] user: dan branch: experimental, size: 258866)
2010-08-09
19:17
[df8e6059] part of check-in [5662da6d] Modify some comments in pager.c. (check-in: [5662da6d] user: dan branch: experimental, size: 258555)
16:12
[ad850e0b] part of check-in [f229487c] Fix a memory leak in test_journal.c causing tests to fail. (check-in: [f229487c] user: dan branch: experimental, size: 256719)
2010-08-07
16:17
[3af4caaa] part of check-in [92e45637] Fix minor problems and update comments in pager.c. (check-in: [92e45637] user: dan branch: experimental, size: 256716)
11:46
[c0f3c60b] part of check-in [f88c6367] Merge in all changes up to the 3.7.0.1 release. (check-in: [f88c6367] user: drh branch: apple-osx, size: 235899)
09:31
[9621456e] part of check-in [531abc80] Fix a problem wherein changing the journal-mode immediately after leaving exclusive-locking mode could lead to the database being unlocked without clearing the changeCountDone flag. (check-in: [531abc80] user: dan branch: experimental, size: 257665)
2010-08-06
17:18
[2dffe4d4] part of check-in [876162c7] Further enhancements to comments in pager.c. (check-in: [876162c7] user: dan branch: experimental, size: 257460)
13:53
[c905bca5] part of check-in [aef6698c] Merge trunk changes into experimental branch. (check-in: [aef6698c] user: dan branch: experimental, size: 255604)
12:00
[3ac13a53] part of check-in [5f4c17a3] Further updates to comments in pager.c. (check-in: [5f4c17a3] user: dan branch: experimental, size: 255611)
06:54
[f8fdab85] part of check-in [6217b607] Fix a bug to do with deleting the journal file when exiting exclusive-locking mode. (check-in: [6217b607] user: dan branch: experimental, size: 251789)
2010-08-05
18:53
[07bda904] part of check-in [54eff6de] Add comments describing UNKNOWN_LOCK to pager.c. Improve some other comments in the same file. (check-in: [54eff6de] user: dan branch: experimental, size: 251105)
16:08
[72325789] part of check-in [800f4969] Catch an error code that was not being propagated back to the caller. (check-in: [800f4969] user: dan branch: experimental, size: 250071)
15:30
[c09ca0cf] part of check-in [f99a902f] Fixes for error handling with temp databases. And for errors that occur within OS locking primitives. (check-in: [f99a902f] user: dan branch: experimental, size: 250032)
2010-08-04
19:14
[d181fe86] part of check-in [77eaab6f] Fix some problems with error recovery introduced while reworking pager state. (check-in: [77eaab6f] user: dan branch: experimental, size: 249766)
2010-08-03
18:29
[a5f55fb2] part of check-in [15368a9f] Merge trunk changes into experimental branch. (check-in: [15368a9f] user: dan branch: experimental, size: 249858)
18:18
[b48eb75d] part of check-in [4d384761] Set the Pager.eState variable to PAGER_ERROR whenever the pager enters the error state. (check-in: [4d384761] user: dan branch: experimental, size: 249856)
15:57
[809f4dfb] part of check-in [fde4c597] Add comments to clarify the purpose of the pager "error state". (check-in: [fde4c597] user: dan branch: experimental, size: 248724)
12:48
[24f97806] part of check-in [16dcf5a6] Add state diagram to comments in experimental version of pager.c. (check-in: [16dcf5a6] user: dan branch: experimental, size: 246311)
06:42
[a2286925] part of check-in [0a636798] Incremental checkin on pager state refactoring. (check-in: [0a636798] user: dan branch: experimental, size: 246771)
2010-08-02
14:32
[94f00bed] part of check-in [03a24051] Experimental refactoring of the Pager object state. This version is surely buggy. (check-in: [03a24051] user: dan branch: experimental, size: 244709)
2010-07-30
16:44
[202e3dcb] part of check-in [6758f6a8] Remove a test from sqlite3PagerCommitPhaseOne which is now always true after the multi-file transaction fix. (check-in: [6758f6a8] user: drh branch: trunk, size: 237043)
15:43
[3e152b44] part of check-in [347f22a5] Remove variable Pager.needSync, which was almost completely unused. (check-in: [347f22a5] user: dan branch: experimental, size: 236625)
14:39
[d493b816] part of check-in [87e0f4e1] Merge trunk changes into experimental again. (check-in: [87e0f4e1] user: dan branch: experimental, size: 237029)
11:31
[3f237379] part of check-in [ad78ccac] Changes to the comments describing the Pager.setMaster variable in pager.c. Add an assert() statement to verify that two master journal pointers are not written to a single journal file. (check-in: [ad78ccac] user: dan branch: trunk, size: 237032)
11:20
[d559cc0b] part of check-in [40f7f0a5] Cherry-pick the multi-file transaction fix for ticket [f3e5abed55] out of the experimental branch. (check-in: [40f7f0a5] user: drh branch: trunk, size: 236508)
10:02
[237bee4c] part of check-in [50c0f220] Make sure a connection has an exclusive lock on all database files involved in a multi-file transaction before writing the master-journal pointer into any journal files. Fix for [f3e5abed55]. (check-in: [50c0f220] user: dan branch: experimental, size: 236505)
07:26
[65efcf8c] part of check-in [fb847d70] Merge further trunk changes into experimental branch. (check-in: [fb847d70] user: dan branch: experimental, size: 235774)
2010-07-29
10:13
[33117640] part of check-in [4b97f864] Unconditionally include the pTmpSpace size in the estimate of the pager memory used. (check-in: [4b97f864] user: drh branch: trunk, size: 235777)
2010-07-28
18:35
[4cf634d8] part of check-in [aa819001] Merge trunk changes into experimental branch. (check-in: [aa819001] user: dan branch: experimental, size: 235799)
17:36
[b877df94] part of check-in [ae89777e] Improve the accuracy of the Pager heap usage estimate. (check-in: [ae89777e] user: drh branch: trunk, size: 235803)
14:26
[27ace2e0] part of check-in [a038688c] Support FCNTL_CHUNK_SIZE on windows too. (check-in: [a038688c] user: dan branch: experimental, size: 235677)
2010-07-13
18:44
[78ca1e1f] part of check-in [f4780bde] Changes so that the xShmOpen VFS method is no longer required. Its job can be done by the first call to xShmMap. Rename xShmClose to xShmUnmap. (check-in: [f4780bde] user: dan branch: experimental, size: 235681)
2010-07-08
19:19
[1d42e2cd] part of check-in [bcdddba4] Replace code that became unreachable due to the journal_mode simplification with an assert(). (check-in: [bcdddba4] user: drh branch: trunk, size: 235682)
2010-07-07
17:53
[1ef321ef] part of check-in [fb62f4e3] When rolling back a savepoint, reset the changeCountDone flag. (check-in: [fb62f4e3] user: dan branch: trunk, size: 235658)
16:18
[39f61b51] part of check-in [e92de834] Do not make the SQLITE_FCNTL_SIZE_HINT call if an error has already occurred during transaction commit. (check-in: [e92de834] user: dan branch: trunk, size: 235612)
14:19
[23e3b0d7] part of check-in [b3179379] Avoid the need for a NEVER() from pager_write_pagelist() by passing in pPager as an extra parameter. (check-in: [b3179379] user: drh branch: trunk, size: 235570)
2010-07-05
19:13
[311571e6] part of check-in [a1324d12] Simplify the previous commit by removing the pagerCheckForOrDeleteWAL() wrapper. (check-in: [a1324d12] user: dan branch: trunk, size: 235674)
19:03
[d6454d37] part of check-in [3053a4ad] Allocate a buffer containing the full path-name to the associated WAL file when a pager is created. This saves having to construct a new buffer each time a new read-transaction is opened and SQLite checks for the existance of a WAL file. (check-in: [3053a4ad] user: dan branch: trunk, size: 236412)
17:43
[14ec8ea3] part of check-in [c0d124da] When rolling back page 1 from a journal, restore the "nReserve" setting in case it has been corrupted by a prior crash. (check-in: [c0d124da] user: drh branch: trunk, size: 236201)
2010-07-03
13:45
[e4470e43] part of check-in [78fc35ff] Fix an assert in pager.c. And various test cases that fail with the in-memory journal permutation. (check-in: [78fc35ff] user: dan branch: mistake, size: 236063)
12:26
Added: [eee7ac31] part of check-in [7cbe175a] Remove dead code from the pager. (check-in: [7cbe175a] user: drh branch: mistake, size: 235986)
2010-07-02
17:07
Deleted: Remove a couple of C++ style comments from pager.c. (check-in: [4f12e8eb] user: drh branch: mistake, size: 0)
17:05
Deleted: Fix some warnings when compiling under MSVC. (check-in: [70833877] user: shaneh branch: mistake, size: 0)
15:35
[95068d8b] part of check-in [01c12782] Remove an unused call to sqlite3PageBegin() from pager_write(). Replace it with an assert(). (check-in: [01c12782] user: drh branch: trunk, size: 235363)
01:18
[3808cf9c] part of check-in [6ae76172] Add a NEVER to sqlite3PagerCommitPhaseTwo() because it is now no longer possible to invoke that function without holding a RESERVED lock. (check-in: [6ae76172] user: drh branch: trunk, size: 235428)
2010-07-01
19:45
[2ce3612a] part of check-in [95c69dfb] If you delete a database file but not its *-wal file, then open the database (thus creating a new empty database file) the *-wal file is automatically deleted. (check-in: [95c69dfb] user: drh branch: trunk, size: 235421)
15:09
[19975354] part of check-in [a8f6341d] Add pager test cases. Change a condition in pager.c to NEVER(). (check-in: [a8f6341d] user: dan branch: trunk, size: 234591)
2010-06-30
10:36
[778df1ad] part of check-in [8e65c0e3] Add further test cases. Fix an assert() in pager.c. (check-in: [8e65c0e3] user: dan branch: trunk, size: 234584)
04:36
[813d09dd] part of check-in [cdf2c5c2] Do not call pager_open_journal() from within PagerBegin() if the connection is in exclusive-access mode. It will be called from within PagerWrite() just as it is for non-exclusive mode anyway. (check-in: [cdf2c5c2] user: dan branch: trunk, size: 234561)
04:29
[c7cf3aa7] part of check-in [5e19bc36] Add coverage test cases. Have sqlite3_backup_step() transform SQLITE_IOERR_NOMEM to SQLITE_NOMEM before returning. (check-in: [5e19bc36] user: dan branch: trunk, size: 235147)
2010-06-28
11:23
[57713740] part of check-in [3b68cb9c] Fix some errors when compiling with SQLITE_OMIT_WAL. (check-in: [3b68cb9c] user: dan branch: trunk, size: 235105)
2010-06-26
21:34
[05bd0bd2] part of check-in [e82d008e] Suppress various compiler warnings. (check-in: [e82d008e] user: drh branch: trunk, size: 235074)
20:00
[363ac12d] part of check-in [29571e22] Suppress a couple uninitialized variable warnings. (check-in: [29571e22] user: drh branch: trunk, size: 235070)
19:02
[13e4675a] part of check-in [42b8bd1c] Remove a NEVER() in pager that can in fact be reached in obscure failure cases. (check-in: [42b8bd1c] user: drh branch: trunk, size: 235070)
17:15
[926ca101] part of check-in [56c7d111] Fix a case where the doNotSyncSpill flag may remain permanently set following an IO error. (check-in: [56c7d111] user: dan branch: trunk, size: 235030)
15:42
[db0de9e0] part of check-in [2eaf5ee0] When synchronous=NORMAL, use the same journal file format as with synchronous=FULL (i.e. multiple journal headers within the one journal). Fix for [d11f09d36e]. (check-in: [2eaf5ee0] user: dan branch: trunk, size: 235003)
2010-06-24
18:36
[edf1f8b0] part of check-in [7d83fbae] Revert to allowing a cache spill during writes of multiple pages within a single sector as long as the spill does not require a journal sync and a new journal header. (check-in: [7d83fbae] user: drh branch: trunk, size: 234990)
14:52
[24a9be67] part of check-in [a55eb4c3] Disable memory-pressure induced cache spill during savepoint rollback. (check-in: [a55eb4c3] user: drh branch: trunk, size: 234595)
10:50
[c1c7f498] part of check-in [7aac9ad6] Add coverage tests. Remove a NEVER macro from pager.c, as the condition can now be true in wal mode. (check-in: [7aac9ad6] user: dan branch: trunk, size: 234763)
2010-06-23
19:27
[e42b2e21] part of check-in [3e9680c4] Add test case for SQLITE_FULL errors to pagerfault.test. Remove a NEVER macro in pager.c that this hits. (check-in: [3e9680c4] user: dan branch: trunk, size: 234770)
15:04
[f16d9f21] part of check-in [8bfbdec6] Simplifications to the pager_delmaster() implementation. (check-in: [8bfbdec6] user: drh branch: trunk, size: 234785)
2010-06-22
21:15
[54719676] part of check-in [2c90276e] Disable code used only by the codec when the codec is not deployed. (check-in: [2c90276e] user: drh branch: trunk, size: 234619)
15:18
[0517562e] part of check-in [393741eb] Add codec support to wal mode. (check-in: [393741eb] user: dan branch: trunk, size: 234573)
13:46
[3c269eca] part of check-in [85dd51a7] Some changes to test scripts related to codec enabled versions of sqlite. (check-in: [85dd51a7] user: dan branch: trunk, size: 234159)
2010-06-21
21:45
[4afcd702] part of check-in [82b38fca] Minor tweaks to get the pager working for corner cases when the SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN flag is set. (check-in: [82b38fca] user: drh branch: trunk, size: 234066)
20:19
[50659082] part of check-in [f820b815] Fix comment inside the pager_unlock() routine. Always close the master journal file before trying to delete it. (check-in: [f820b815] user: drh branch: trunk, size: 234066)
12:34
[9f138b79] part of check-in [a64d96db] Change things so that journal2.test works with ENABLE_ATOMIC_WRITE. (check-in: [a64d96db] user: dan branch: experimental, size: 233977)
2010-06-19
18:12
[6ebb4323] part of check-in [5a5ff4e3] Change the name of IOCAP_SAFE_DELETE to IOCAP_UNDELETABLE_WHEN_OPEN. Have the xDeviceCharacteristics() method of the win32 VFS return this flag. (check-in: [5a5ff4e3] user: dan branch: experimental, size: 233905)
2010-06-17
17:05
[4fe451d6] part of check-in [9a949a3a] Apply [b9b11855e8] (the alternate fix to [fc62af4523]) to the trunk. (check-in: [9a949a3a] user: dan branch: trunk, size: 233217)
16:44
[5968e0d7] part of check-in [b9b11855] A different fix to [fc62af4523]. When changing from journal_mode=PERSIST or TRINCATE to some other rollback mode, delete the journal file only if a RESERVED lock can be obtained on the database file first. (check-in: [b9b11855] user: dan branch: experimental, size: 233883)
10:52
[658e5063] part of check-in [9f6ea1de] Merge trunk updates with experimental branch. Also add tests to journal2.test. (check-in: [9f6ea1de] user: dan branch: experimental, size: 232276)
10:42
[b5584c5e] part of check-in [1ec74591] Do not delete the journal file in "PRAGMA journal_mode" commands. This fixes [fc62af4523]. (check-in: [1ec74591] user: dan branch: trunk, size: 231610)
06:19
[3b2527d9] part of check-in [20133e9c] Merge fix [f80c3f922a] with experimental changes. (check-in: [20133e9c] user: dan branch: experimental, size: 232873)
02:13
[7f0ebd5d] part of check-in [f80c3f92] Bug fix: Only trust the database size number at offset 28 if the change counter at offset 24 matches the version number counter at offset 92. This prevents corruption in the case of two applications writing to the database where one is an older version of SQLite and the other is a newer version. (check-in: [f80c3f92] user: drh branch: trunk, size: 232207)
2010-06-16
19:04
[133cc49d] part of check-in [bede8c8a] Experimental change: On systems where it is not possible to unlink a file while one or more processes has it open (i.e. not unix), avoid closing the journal file each time the database is unlocked and reopening it at the start of each transaction. (check-in: [bede8c8a] user: dan branch: experimental, size: 232676)
2010-06-11
17:01
[2964185d] part of check-in [95cc3f6f] Refactor and simplify the logic used to change journalmode. (check-in: [95cc3f6f] user: drh branch: trunk, size: 232010)
2010-06-10
01:07
[dde0b744] part of check-in [7abcd54e] Remove a condition that must always be true. Replace it with an assert(). (check-in: [7abcd54e] user: drh branch: trunk, size: 230872)
2010-06-03
12:35
[bd9647a7] part of check-in [c43deb33] Delay opening the sub-journal until SQLite actually needs to write data to it. (check-in: [c43deb33] user: dan branch: trunk, size: 230877)
09:01
[1eca1ede] part of check-in [91cb08ff] If a malloc fails while allocating a savepoint object at the pager level, do not try to roll that savepoint back later on. (check-in: [91cb08ff] user: dan branch: trunk, size: 230723)
2010-06-02
17:15
[fa5ce633] part of check-in [cb571c1b] If an error occurs while writing frames to the log to commit a transaction, do not mark the pages as clean in the cache. Otherwise, the subsequent rollback does not roll them back (leaving the client to continue with a cache that makes it appear that the transaction was committed - inconsistent with the database on disk). (check-in: [cb571c1b] user: dan branch: trunk, size: 230681)
2010-05-31
20:28
[acbef227] part of check-in [8deba0ce] Fix issues with locking_mode=EXCLUSIVE in WAL. (check-in: [8deba0ce] user: drh branch: wal-incr-ckpt, size: 230644)
2010-05-30
19:55
[f7128f02] part of check-in [ef3ba7a1] Initial code for incremental checkpoint in WAL mode. This check-in compiles on unix and runs as long as you do not engage WAL mode. WAL mode crashes and burns. Consider this check-in a baseline implementation for getting the new capability up and running. (check-in: [ef3ba7a1] user: drh branch: wal-incr-ckpt, size: 230400)
2010-05-25
02:24
[5d693cc6] part of check-in [54c1718e] Remove unreachable code associated with WAL from the pager. (check-in: [54c1718e] user: drh branch: trunk, size: 230151)
2010-05-24
13:57
[0fbfe2cc] part of check-in [8a53f12c] Change the checksum used in WAL files so that each frames checksum depends on the content of the WAL header and all frame headers and content up to and including the frame to which the checksum is attached. (check-in: [8a53f12c] user: dan branch: trunk, size: 229942)
2010-05-19
22:09
[e39ac887] part of check-in [776679af] Cherry-pick the SQLITE_FCNTL_SIZE_HINT patch (check-in [2b7e3b4a30d6a7c4a8] and bump the version number to 3.6.23.2. (check-in: [776679af] user: drh branch: branch-3.6.23, size: 207717)
19:26
[d3284a6b] part of check-in [2b7e3b4a] Add the SQLITE_FCNTL_SIZE_HINT operator to sqlite3_file_control() and use it to give the VFS hints about the ultimate size of a database file when the file is growing. (check-in: [2b7e3b4a] user: drh branch: trunk, size: 229944)
2010-05-18
12:37
[c78c9558] part of check-in [97d88a86] Keep additional state information in the pager in an effort to reduce the number of SQLITE_FCNTL_SIZE_HINTs. (Note: This change was found to make no performance difference and so has been moved onto a side branch. Use the parent check-in instead of this one.) (check-in: [97d88a86] user: drh branch: branch-3.6.1-exp, size: 181905)
2010-05-17
15:52
[e6b49d1b] part of check-in [a1d20ceb] An improvement to the SQLITE_FCNTL_SIZE_HINT change that invokes the hint less often and only when really needed. (check-in: [a1d20ceb] user: drh branch: branch-3.6.1, size: 181297)
15:33
[a7470e87] part of check-in [9a083711] Invoke the SQLITE_FCNTL_SIZE_HINT opcode on the sqlite3_file_control() interface for database files before extending the size of the file. The VFS can use this hint to preallocate space. (check-in: [9a083711] user: drh branch: branch-3.6.1, size: 181359)
2010-05-12
18:01
[1e163a82] part of check-in [2b00152c] Refactoring the VFS-SHM methods used by WAL. This version compiles and runs non-WAL test cases but crashes and burns on wal.test. (check-in: [2b00152c] user: drh branch: wal-refactor, size: 229624)
2010-05-11
14:00
[ad9cb3be] part of check-in [cf3d1e0b] When an attempt to change journal_mode fails due to locks, be sure to leave internal structures in a consistent state. (check-in: [cf3d1e0b] user: drh branch: trunk, size: 229210)
12:19
[871ccb53] part of check-in [71e7b1cf] Changes so that WAL and exclusive-locking mode work together. (check-in: [71e7b1cf] user: dan branch: trunk, size: 229028)
2010-05-06
19:20
[a47af9c2] part of check-in [32a8501d] Changes to support SQLITE_OMIT_WAL. (check-in: [32a8501d] user: shaneh branch: trunk, size: 227665)
15:56
[d6e9edb6] part of check-in [98a9713e] Further coverage tests. (check-in: [98a9713e] user: dan branch: trunk, size: 227625)
2010-05-04
18:50
[224df6ad] part of check-in [4016b422] When sqlite3PagerPagecount() is called without any locks, always return the physical file size, not the logical file size. (check-in: [4016b422] user: drh branch: trunk, size: 227591)
14:47
[f0305365] part of check-in [1a391f3c] Fix problems with recovering wal files that use a page-size other than the default. (check-in: [1a391f3c] user: dan branch: trunk, size: 227515)
2010-05-01
16:40
[e9c7fe97] part of check-in [9b230c43] Support compile-time option SQLITE_OMIT_WAL, for building without WAL support. (check-in: [9b230c43] user: dan branch: wal, size: 227281)
2010-04-30
09:52
[434f9751] part of check-in [a8f958be] Fix a couple of assert() statements in os_unix.c and wal.c. Combine sqlite3WalIsDirty() with sqlite3WalUndo(). (check-in: [a8f958be] user: dan branch: wal, size: 226192)
2010-04-29
22:34
[07c35223] part of check-in [62db5fa3] Refactor wal.c to use the VFS. This check-in compiles and links and works ok as long as you leave WAL turned off, but WAL does not work. (check-in: [62db5fa3] user: drh branch: wal, size: 226237)
2010-04-26
16:57
[b4a41030] part of check-in [6a944f02] Fixes for problems with small caches and SAVEPOINT rollback in WAL mode. (check-in: [6a944f02] user: dan branch: wal, size: 226225)
00:19
[5924538f] part of check-in [56fe5d76] Change the names of the log.c and log.h source files to wal.c and wal.h. (check-in: [56fe5d76] user: drh branch: wal, size: 225634)
2010-04-24
18:44
[9da40bb5] part of check-in [31215969] Fix bugs in WAL mode rollback. (check-in: [31215969] user: dan branch: wal, size: 225634)
2010-04-23
19:15
[485a3483] part of check-in [480d12db] Fixes and tests for backup of a WAL database. (check-in: [480d12db] user: dan branch: wal, size: 224630)
2010-04-22
19:14
[d83d2ea6] part of check-in [5d6d4423] Create a version of the log checksummer that works on big-endian platforms. Remove the 512KB size limit on the log-summary. (check-in: [5d6d4423] user: dan branch: wal, size: 222787)
06:27
[06fb9b8b] part of check-in [12363184] Further tests and changes related to switching between WAL and rollback modes. (check-in: [12363184] user: dan branch: wal, size: 222696)
2010-04-21
18:37
[f20f9090] part of check-in [9f4f933f] Tests for (and changes to) the code to switch between WAL and rollback modes. (check-in: [9f4f933f] user: dan branch: wal, size: 222218)
11:43
[4ff50f4e] part of check-in [33cabf27] If, after obtaining a SHARED lock, there exists a *-wal file in the file-system, use WAL mode. This is necessary to recover from a crash that damages the first page of the database file. (check-in: [33cabf27] user: dan branch: wal, size: 222489)
2010-04-20
18:53
[1dcf76be] part of check-in [96bef18c] Use the read and write version fields of the database header to mark a database as operating in wal-mode. (check-in: [96bef18c] user: dan branch: wal, size: 221203)
2010-04-19
18:03
[f9ad51df] part of check-in [9bda6014] Add the sqlite3_log_hook() interface for scheduling checkpoints. (check-in: [9bda6014] user: dan branch: wal, size: 220810)
2010-04-17
17:34
[344eddf3] part of check-in [0ae91b00] Do not sync any files in wal mode if "PRAGMA synchronous=off" is set. If files are synced, pass either SQLITE_SYNC_FULL or SQLITE_SYNC_NORMAL to the xSync() callback as configured by "PRAGMA fullfsync". (check-in: [0ae91b00] user: dan branch: wal, size: 220721)
15:42
[751ada65] part of check-in [9bc9b684] In synchronous=normal mode, do not sync the log after every transaction. In synchronous=full mode, sync the log and add any extra frames required to avoid blast-radius related problems after each transaction. (check-in: [9bc9b684] user: dan branch: wal, size: 220592)
12:31
[674d6558] part of check-in [8549c286] Enhancements to wal-mode locking scheme. (check-in: [8549c286] user: dan branch: wal, size: 220543)
2010-04-16
11:30
[35c7e3b5] part of check-in [67d2a89e] Fix bug in log recovery (last frame in log was being ignored). Also remove an incorrect assert statement. (check-in: [67d2a89e] user: dan branch: wal, size: 219126)
2010-04-15
16:45
[80054194] part of check-in [ecd828f9] Allow writers to write dirty pages to the log mid-transaction in order to free memory. (check-in: [ecd828f9] user: dan branch: wal, size: 219160)
2010-04-13
19:27
[9e9ee38c] part of check-in [3f958e87] Add experimental locking scheme. (check-in: [3f958e87] user: dan branch: wal, size: 218867)
15:30
[c4937e71] part of check-in [f4e1150f] Fix an uninitialized variable in readDbPage of pager.c. (check-in: [f4e1150f] user: drh branch: wal, size: 219063)
11:56
[88cbb683] part of check-in [27dc5977] Remove old code to interpret an argument (no longer used) to "PRAGMA checkpoint". (check-in: [27dc5977] user: dan branch: wal, size: 219063)
11:18
[020c2971] part of check-in [4a0b29dc] Fix a pager bug introduced by the wal code. (check-in: [4a0b29dc] user: dan branch: wal, size: 219095)
2010-04-12
19:00
[d61318cd] part of check-in [409d61ba] Import experimental write-ahead-logging code. (check-in: [409d61ba] user: dan branch: wal, size: 218771)
17:08
[da5ed17b] part of check-in [51a61395] Fix a problem where a process in exclusive mode could delete a hot-journal file without rolling it back from within sqlite3_close() or DETACH. This problem was introduced by commits from the past few days; it is not present in any release. (check-in: [51a61395] user: dan branch: trunk, size: 213820)
2010-04-10
17:52
[bde3cc79] part of check-in [09065976] Fix issues and clarify the operation of pager_playback_one_page(). A block comment in pager.c identifies 13 invariants on the pager subsystem. Ticket [9d68c883132c8]. (check-in: [09065976] user: drh branch: trunk, size: 213054)
2010-04-09
15:34
[ab2482d8] part of check-in [8c046eb6] Candidate fix for a pager bug associated with sqlite3PagerMovepage(). (check-in: [8c046eb6] user: drh branch: trunk, size: 208260)
2010-04-03
13:08
[044c2731] part of check-in [7626f6c9] Silently abandon a rollback if the journal has been truncated. (check-in: [7626f6c9] user: drh branch: trunk, size: 208173)
2010-04-02
13:25
[4f218660] part of check-in [d64d181c] Check for a failure in the call to sqlite3PagerPagecount() from within sqlite3PagerWrite(). (Error discovered by valgrind.) (check-in: [d64d181c] user: drh branch: trunk, size: 207707)
03:39
[2ac73f55] part of check-in [b04a45ea] Pager changes for code coverage testing. (check-in: [b04a45ea] user: drh branch: trunk, size: 207678)
2010-04-01
13:41
[7ea0549f] part of check-in [b1e7a1a6] Do not journal the content of freelist leaf pages. This restores an optimization that was accidently undone by check-in [12f7346c13] on 2009-01-20. (check-in: [b1e7a1a6] user: drh branch: trunk, size: 207797)
02:47
[2e91228d] part of check-in [8f005337] Remove a NEVER in sqlite3PagerPagecount() that can in fact be true. (check-in: [8f005337] user: drh branch: trunk, size: 207783)
2010-03-31
23:20
[600058c0] part of check-in [8aecf302] Make sure an OOM error on sqlite3PagerPagecount() is detected and reported out to the interface. (check-in: [8aecf302] user: drh branch: trunk, size: 207790)
02:31
[d9f42623] part of check-in [dbc2c3c0] Increase test coverage following the introduction of the new filesize-in-header logic. (check-in: [dbc2c3c0] user: drh branch: trunk, size: 207763)
2010-03-30
22:58
[0fcd5b43] part of check-in [79e22b95] Continuing refinements to the filesize-in-header enhancement. (check-in: [79e22b95] user: drh branch: trunk, size: 207756)
2010-03-27
17:12
[af1c58b7] part of check-in [b844ac6f] Experimental changes that cause SQLite to use bytes 28..31 of the database header to determine the database size, rather than using the actual database size. This allows database space to be preallocated. (check-in: [b844ac6f] user: drh branch: experimental, size: 207755)
2010-03-26
17:37
[1915e3ec] part of check-in [ca0bc2a2] After any rollback that modifies the database file, sync the database before deleting the rollback journal. This is a cherry-pick merge of check-ins [b21b911f23] and [f2326dad4e] (check-in: [ca0bc2a2] user: drh branch: branch-3.6.23, size: 207375)
2010-03-22
23:55
[cba88e31] part of check-in [82dd61fc] Sync the database file after a rollback. This is a cherrypick merge of check-in [b21b911f23]. (check-in: [82dd61fc] user: drh branch: branch-3.6.22, size: 206782)
17:13
[2a374f72] part of check-in [b21b911f] After a rollback that writes or truncates the database file, sync the database file before invalidating the journal contents. Fix for [015d3820f2]. (check-in: [b21b911f] user: dan branch: trunk, size: 208050)
2010-03-19
16:55
[26453ead] part of check-in [146d4f5d] Store the SQLite version number of the last writer in bytes 96..99 of the header. (check-in: [146d4f5d] user: drh branch: trunk, size: 207912)
16:52
[f3d8a68d] part of check-in [69d749d9] Make sure the in-journal boolean vector is cleared and released when ending a transaction. This fixes an obscure problem with the previous check-in. (check-in: [69d749d9] user: drh branch: trunk, size: 207742)
15:48
[8e5cefa3] part of check-in [b78e58ae] Do not create, open, or initialize the rollback journal until something actually needs to be written into the journal. That way, expensive filesystem operations are avoided if the transaction ends up being a no-op. (check-in: [b78e58ae] user: drh branch: trunk, size: 207749)
2010-03-13
02:15
[db7a3988] part of check-in [59f75bba] Store the database size in pages in bytes 28..31 of the header. Currently this is for forensic use only, but it might be used in the future. (check-in: [59f75bba] user: drh branch: trunk, size: 207719)
2010-03-10
21:42
[59af0965] part of check-in [418c6d81] Add the SQLITE_DBSTATUS_CACHE_SIZE verb for sqlite3_db_status(). The highwater mark does not yet work on this verb. (check-in: [418c6d81] user: drh branch: trunk, size: 207556)
2010-03-08
21:40
[80688c6f] part of check-in [ffb6596e] Add NEVER and assert macros and explanatory comments for unreachable conditions. (check-in: [ffb6596e] user: drh branch: trunk, size: 207237)
2010-03-05
20:17
[aafc314d] part of check-in [81ff698f] Make sure the dbFileVers field in the Pager object is properly initialized even if there is an I/O error while reading its content off of disk. (check-in: [81ff698f] user: drh branch: trunk, size: 207202)
2010-02-25
14:44
[0e7b4ddc] part of check-in [a2550597] Add some technically unnecessary variable initializations to silence compiler warnings. (check-in: [a2550597] user: dan branch: branch-3.6.1, size: 181011)
02:32
[71d2a707] part of check-in [46f406b2] Merge in all of the logging enhancements. This is a cherrypick merge of the following check-ins: [103321e37a], [a8076aede3], [6d910245ad], [7c4cca6d1a], [edea3bb740], [1a6d4bb130], [a8c984c1d6], [69a493182f], and [1168763d2c]. (check-in: [46f406b2] user: drh branch: branch-3.6.22, size: 206644)
01:54
[3250440d] part of check-in [ce624e39] Merge in the fix for VACUUM on auto_vacuumed databases with large schemas. Check-in [86d50ce57f]. Ticket [da1151f97df]. (check-in: [ce624e39] user: drh branch: branch-3.6.22, size: 206634)
2010-02-23
17:36
[ace73a84] part of check-in [7c4cca6d] Remove the obsolete sqlite3SafetyOn() mechanism. Add additional logging output for CORRUPT, and CANTOPEN errors. (check-in: [7c4cca6d] user: drh branch: trunk, size: 206431)
2010-02-22
23:17
[d0e53cd3] part of check-in [86d50ce5] Fix an assertion-fault/segfault problem that comes up when trying to VACUUM an auto-vacuumed database with a large schema. Ticket [da1151f97df244]. (check-in: [86d50ce5] user: drh branch: trunk, size: 206421)
2010-02-12
18:18
[5dee83c3] part of check-in [f72f8a87] Allow the secure-delete setting to be changed at run-time using a pragma. The SQLITE_SECURE_DELETE compile-time option determines the default setting. (check-in: [f72f8a87] user: drh branch: trunk, size: 206398)
2010-02-05
16:28
[4cf8da7c] part of check-in [27dc5b1c] Avoid truncating non-in-memory sub-journals when releasing a savepoint for a small performance improvement. (check-in: [27dc5b1c] user: shaneh branch: trunk, size: 206611)
2010-01-30
23:08
[8e6b147f] part of check-in [bb18f578] The iInUseDB and iInUseMM variables do not need to be volatile. (check-in: [bb18f578] user: drh branch: branch-3.5.9, size: 179427)
22:28
[1f77fc8d] part of check-in [622c1717] Always hold the MEM2 mutex when initially marking a pager as in use by its database connection. (check-in: [622c1717] user: drh branch: branch-3.5.9, size: 179427)
19:17
[3b7e5e4e] part of check-in [a718e663] Avoid a race condition in the sqlite3_release_memory() logic within pager.c. (check-in: [a718e663] user: drh branch: branch-3.5.9, size: 179383)
19:00
[ce1e5395] part of check-in [9d13acc4] Remove all cache pages from the LRU list prior to removing the pager from the pager list when closing a pager. (check-in: [9d13acc4] user: drh branch: branch-3.5.9, size: 179574)
18:22
[3b4bce33] part of check-in [c50e972f] Add additional pagerMutexHeld() macros to better verify the correct operation of pager.c. (check-in: [c50e972f] user: drh branch: branch-3.5.9, size: 179531)
2010-01-29
21:23
[38743db6] part of check-in [ea3b941a] Fix a missing mutex on page cache truncation during vacuum and auto-vacuum when SQLITE_ENABLE_MEMORY_MANAGEMENT is engaged. (check-in: [ea3b941a] user: drh branch: branch-3.5.9, size: 179304)
19:50
[44bc914a] part of check-in [228b8ad9] Additional changes suggested by Rob Stoddard. (check-in: [228b8ad9] user: drh branch: branch-3.5.9, size: 179193)
19:46
[aa29f273] part of check-in [5ed168c4] Changes to 3.5.9 proposed by Rob Stoddard. (check-in: [5ed168c4] user: drh branch: branch-3.5.9, size: 179201)
2010-01-05
13:40
[e5421d38] part of check-in [e47e2133] Make sure new pages are zeroed even when loading a freelist page using the noContent option. This prevents a harmless valgrind warning. (check-in: [e47e2133] user: drh branch: trunk, size: 206504)
2009-12-02
14:44
[a0ed14b8] part of check-in [d17ec16b] Clear the Pager.dbModified flag when unlocking the database. Assert that it is clear when locking the database. (check-in: [d17ec16b] user: dan branch: trunk, size: 206519)
2009-11-23
15:59
[b2a564bb] part of check-in [6ce6ff44] Rearrange the order of two branches in order to restore 100% branch coverage after recent changes to in-memory database processing. (check-in: [6ce6ff44] user: drh branch: trunk, size: 206371)
2009-11-21
01:33
[a5c0fa9b] part of check-in [f3398fc4] Fix a bug in transaction rollback during backup when the CODEC is enabled that can result in a corrupt backup file. This is only a problem when SQLITE_HAS_CODEC is defined. (check-in: [f3398fc4] user: drh branch: trunk, size: 206371)
2009-11-20
18:48
[3c408c64] part of check-in [2f42f91f] When moving pages as part of autovacuum on an in-memory database, make sure that the source location is journalled so that a ROLLBACK can occur. Part of the fix for ticket [564d412f15a00] (check-in: [2f42f91f] user: drh branch: trunk, size: 206347)
13:18
[4adc8baf] part of check-in [9a429349] Avoid unnecessary page cache allocations when move a page while autovacuuming an in-memory database, since the allocation might fail making it impossible to rollback the transaction. (check-in: [9a429349] user: drh branch: trunk, size: 206159)
2009-11-11
23:58
[47343e34] part of check-in [8861b5c1] If the sector size is unspecified (initially 0) then set it to 512, not to 32. (check-in: [8861b5c1] user: drh branch: trunk, size: 206073)
13:17
[f7d645a8] part of check-in [5a32bfc1] Allow media sector sizes as small as 32. The former minimum size was 512. (check-in: [5a32bfc1] user: drh branch: trunk, size: 206072)
2009-11-10
01:30
[e31b8fc3] part of check-in [f6c045f6] Remove the obsolete "$Id:$" RCS identifier strings from the source code. (check-in: [f6c045f6] user: drh branch: trunk, size: 206071)
01:12
[c7c20ff0] part of check-in [5a9e7463] Omit some code that is not used when SQLITE_SECURE_DELETE is defined. (check-in: [5a9e7463] user: drh branch: trunk, size: 206133)
2009-11-06
04:13
[5b5a980a] part of check-in [ddb71cd9] Fix the backup API so that a backup from an empty database to a non-empty database works. Ticket [0bf974bdf9]. The only changes are in assert() statements. (check-in: [ddb71cd9] user: drh branch: trunk, size: 205920)
2009-11-04
21:49
[36e29a10] part of check-in [6f3081a8] Do not accept a codec no an in-memory database. (check-in: [6f3081a8] user: drh branch: shunning-error, size: 205928)
2009-11-02
15:51
[729f73fe] part of check-in [79ab4714] Comment changes in support of better documentation. No changes to code. (check-in: [79ab4714] user: drh branch: trunk, size: 205908)
2009-08-31
16:09
[ebd0a8f2] part of check-in [5e2f5496] More thorough initialization of a buffer when writing the rollback journal header, in order to prevent a harmless valgrind warning. CVSTrac ticket #4039 (check-in: [5e2f5496] user: drh branch: trunk, size: 206296)
2009-08-10
17:48
[a47be286] part of check-in [8e1e0ba2] Reduce the maximum supported sector size to 64KiB. (CVS 6970) (check-in: [8e1e0ba2] user: drh branch: trunk, size: 206321)
2009-07-27
14:15
[4aa16cc8] part of check-in [224bc69a] If there is a hot-journal in the file-system, a connection with journal_mode=memory set may have to open it to effect rollback. Account for this in pager_end_transaction(). This prevents an assert from failing in the in-memory journal permutation test. (CVS 6947) (check-in: [224bc69a] user: danielk1977 branch: trunk, size: 206330)
2009-07-25
22:13
[36a14ae2] part of check-in [886e665f] The noReadlock property on a pager object implies the readOnly property. Use this fact to simplify the logic in sqlite3PagerSharedLock(). (CVS 6944) (check-in: [886e665f] user: drh branch: trunk, size: 206385)
19:31
[a9ce18aa] part of check-in [f0024b31] Remove obsolete assert and testcase macros related to ticket #2565 (CVS 6943) (check-in: [f0024b31] user: drh branch: trunk, size: 206386)
17:39
[f050740b] part of check-in [1d931f77] Change an unreachable condition in PagerSharedLock to a NEVER(...). Add an assert to pager_error() to show that it is never called to put an in-memory pager to the error-state. (CVS 6941) (check-in: [1d931f77] user: danielk1977 branch: trunk, size: 208655)
17:08
[e9d23aef] part of check-in [533d6cc6] More simplifications to pager.c. (CVS 6939) (check-in: [533d6cc6] user: drh branch: trunk, size: 208851)
15:24
[9ba1c741] part of check-in [5b70b5c1] Simplifications and comment improvements to pager.c in support of coverage testing. (CVS 6938) (check-in: [5b70b5c1] user: drh branch: trunk, size: 209178)
14:18
[23c9823d] part of check-in [cc9430e3] Add a NEVER() on an always-false conditional in pager.c. Make sure the text of the master journal file is zero-terminated before trying to process it - to prevent a buffer overrun in strlen(). (CVS 6937) (check-in: [cc9430e3] user: drh branch: trunk, size: 209126)
11:40
[2ccb1152] part of check-in [2e08ad7b] Add a complex assert() that checks a pager invariant. (CVS 6934) (check-in: [2e08ad7b] user: danielk1977 branch: trunk, size: 209090)
04:12
[e26d9c5d] part of check-in [3b6d370e] Add assert() statements to more tightly constrain the state of pager.c. Remove the three pager*.test scripts since they violate the constraints asserted above by modifying the state of the system in ways that it cannot be modified in a live system. (CVS 6933) (check-in: [3b6d370e] user: drh branch: trunk, size: 207502)
00:13
[c462bf61] part of check-in [788aa9dd] Remove two more overzealous assert() statements. (CVS 6932) (check-in: [788aa9dd] user: drh branch: trunk, size: 207535)
00:10
[872b3807] part of check-in [4a924b47] Remove an overzealous assert() from pager.c. (CVS 6931) (check-in: [4a924b47] user: drh branch: trunk, size: 207620)
2009-07-24
21:23
[e71458a9] part of check-in [e5165c80] Fix an issue with the previous check-in, (6929). (CVS 6930) (check-in: [e5165c80] user: drh branch: trunk, size: 207566)
19:01
[1ad2dff3] part of check-in [866216c0] Further simplifications to pager.c in support of structural coverage testing. (CVS 6929) (check-in: [866216c0] user: drh branch: trunk, size: 207551)
16:32
[80910e68] part of check-in [7222ad26] Simplifications to pager.c in support of structural coverage testing. (CVS 6927) (check-in: [7222ad26] user: drh branch: trunk, size: 207751)
12:35
[cc446ee3] part of check-in [2d2f42ca] Simplifications and comment improvements in pager.c. (CVS 6926) (check-in: [2d2f42ca] user: drh branch: trunk, size: 207019)
2009-07-22
16:41
[2149b827] part of check-in [2594f01c] Avoid leaving a suspect page in the page-cache if an error occurs during sqlite3PagerAcquire(). (CVS 6922) (check-in: [2594f01c] user: danielk1977 branch: trunk, size: 206930)
13:19
[c1b13280] part of check-in [1e510d7f] Add a NEVER() macro around a pager.c conditional that must always be false in the current implementation. (CVS 6920) (check-in: [1e510d7f] user: drh branch: trunk, size: 207197)
02:02
[b4edef36] part of check-in [38083228] Remove an ALWAYS() from a condition that can in fact be false under very obscure circumstances. (CVS 6918) (check-in: [38083228] user: drh branch: trunk, size: 207190)
2009-07-21
19:25
[9838393b] part of check-in [0b41dfc0] Change getAndInitPage() (btree.c) to use only PagerAcquire(), not PagerLookup() and PagerAcquire(). (CVS 6916) (check-in: [0b41dfc0] user: danielk1977 branch: trunk, size: 207206)
2009-07-18
20:01
[ed7cdaac] part of check-in [22c6dbfd] Code tweaks in support of full-coverage testing. (CVS 6907) (check-in: [22c6dbfd] user: drh branch: trunk, size: 207039)
2009-07-13
15:52
[283d4e9c] part of check-in [1c2bfc43] Remove the SQLITE_CommitBusy flag. This was an attempt to block recursion on the sqlite3_commit_hook() interface. But such recursion is explicitly disallowed, so the flag is pointless. (CVS 6889) (check-in: [1c2bfc43] user: drh branch: trunk, size: 207095)
11:22
[3bad5d2b] part of check-in [b9be365d] In sqlite3PagerWrite(), do not set the PGHDR_NEED_SYNC flag on a page if an IO error occured while attempting to journal it. (CVS 6887) (check-in: [b9be365d] user: danielk1977 branch: trunk, size: 207101)
2009-07-12
02:31
[e442d1ca] part of check-in [d0964b93] When an OOM fault occurs while moving a page for autovacuum in an in-memory database, be sure to undo the page move prior to returning the error, to avoid corrupting the in-memory database file. (CVS 6883) (check-in: [d0964b93] user: drh branch: trunk, size: 207076)
2009-07-07
13:56
[164c5b01] part of check-in [ea7ed166] If an error occurs in PagerBegin(), call pager_end_transaction() to reset the internal state of the pager object. (CVS 6855) (check-in: [ea7ed166] user: danielk1977 branch: trunk, size: 207031)
2009-07-06
21:54
[18b9bfe8] part of check-in [31a5e819] Fix the pager so that it remembers the name of the journal for an in-memory database as an empty string. This is important when committing a multi-database transaction that includes one or more attached memory databases. (CVS 6852) (check-in: [31a5e819] user: drh branch: trunk, size: 206618)
2009-06-26
12:15
[04fdbede] part of check-in [ac145028] Fix the new pager.c changes so that they compile with IOTRACE defined. Fix an out-of-order variable definition in vdbeaux.c. (CVS 6820) (check-in: [ac145028] user: drh branch: trunk, size: 206559)
07:12
[aff52317] part of check-in [a5ecffcf] Avoid writing the 8-byte journal-header magic until the journal-header is synced. In persistent journal-mode, this prevents any old content that follows an unsynced journal-header from being interpreted as part of the rollback journal. (CVS 6817) (check-in: [a5ecffcf] user: danielk1977 branch: trunk, size: 206793)
2009-06-22
05:43
[85cb38f0] part of check-in [971a9650] If an OOM error occurs just after obtaining a shared lock on the database file, release the lock before returning. (CVS 6795) (check-in: [971a9650] user: danielk1977 branch: trunk, size: 206561)
2009-06-20
18:52
[2fc3693e] part of check-in [4b46805c] When recovering from the error-state in pagerSharedLock(), do not search for a hot-journal in the file-system if the pager is configured to use an anonymous temp file as the journal. (CVS 6793) (check-in: [4b46805c] user: danielk1977 branch: trunk, size: 206528)
11:54
[f6d5aa97] part of check-in [9a066600] If after obtaining an exclusive lock to rollback a hot-journal file it is found that the journal file has been deleted, do not return an SQLITE_BUSY error. Just downgrade the lock and continue with the current operation. This eliminates a spurious SQLITE_BUSY error caused by a race condition. (CVS 6792) (check-in: [9a066600] user: danielk1977 branch: trunk, size: 206469)
2009-06-19
17:50
[50765577] part of check-in [62db08bc] If a call is made to sqlite3PagerAcquire when there are no outstanding references to any pages and the pager is in the error-state, try to exit the error-state at this point. Previously this was only attempted if the pager was configured to use exclusive mode. (CVS 6788) (check-in: [62db08bc] user: danielk1977 branch: trunk, size: 206225)
02:25
[afe8e53f] part of check-in [7d8f178c] Fix a possible segfault when backing up an encrypted database. (CVS 6785) (check-in: [7d8f178c] user: drh branch: trunk, size: 206242)
00:33
[3edf86ef] part of check-in [1c8ec2a6] Make sure the sqlite3VdbeGetOp() subroutine works even when SQLite is compiled with SQLITE_OMIT_TRACE. (CVS 6784) (check-in: [1c8ec2a6] user: drh branch: trunk, size: 206252)
2009-06-18
20:52
[4c21c7ac] part of check-in [87d6796d] Changes to the backup functionality so that it works better with codecs. (CVS 6783) (check-in: [87d6796d] user: drh branch: trunk, size: 206252)
17:22
[5fee0ea9] part of check-in [ed08b53c] Move codec management from database connections into the pager so that it will work together with shared cache. (CVS 6782) (check-in: [ed08b53c] user: drh branch: trunk, size: 206091)
2009-06-11
17:32
[efdd56a4] part of check-in [73ba841a] Honor the SQLITE_OPEN_READONLY flag even on a :memory: or temporary database, even though such a database is pointless. Ticket #3908. (CVS 6748) (check-in: [73ba841a] user: drh branch: trunk, size: 204835)
00:47
[7bc85a61] part of check-in [43a6ca98] Changes to reenable codec operation and to handle memory allocation failures within a codec. (CVS 6746) (check-in: [43a6ca98] user: drh branch: trunk, size: 204787)
2009-06-02
21:31
[30aafb66] part of check-in [04bad9eb] Further reductions in the amount of stack space required. (CVS 6707) (check-in: [04bad9eb] user: drh branch: trunk, size: 204526)
2009-05-29
11:57
[47acbe14] part of check-in [726b425e] Still more refinements to the hasHotJournal() fix of ticket #3883. (CVS 6689) (check-in: [726b425e] user: drh branch: trunk, size: 204467)
10:55
[e8d7bb38] part of check-in [a2ba61d9] The hasHotJournal() fix of check-in (6687) causes some minor problems in various alternative operating modes, such as locking_mode=EXCLUSIVE. This additional patch attempts to fix those concerns. Ticket #3883. (CVS 6688) (check-in: [a2ba61d9] user: drh branch: trunk, size: 204368)
00:30
[6c0fc1c0] part of check-in [d6b5d8e1] Modify the hasHotJournal() routine to return a false-positive if it is unable to open the journal file to check its header due to a race condition. Processing downstream of hasHotJournal() already knows how to deal with false-positives. Ticket #3883. (CVS 6687) (check-in: [d6b5d8e1] user: drh branch: trunk, size: 204167)
2009-05-18
17:11
[1379ce5c] part of check-in [0d3abee2] Port the sqlite3_backup fix of check-in (6632), ticket #3858 onto the 3.6.14.1 branch. (CVS 6654) (check-in: [0d3abee2] user: drh branch: branch_3_6_14, size: 202772)
2009-05-13
07:52
[8bf62fef] part of check-in [90309008] When locking a database file, check if any backup objects need to be restarted even if the page cache is empty. Ticket #3858. (CVS 6632) (check-in: [90309008] user: danielk1977 branch: trunk, size: 202776)
2009-05-06
18:57
[e7171336] part of check-in [df599237] Changes to silence compiler warnings under MSVC. (CVS 6613) (check-in: [df599237] user: shane branch: trunk, size: 202751)
2009-04-30
16:41
[05949095] part of check-in [d67af3f5] Fix a problem with in-memory sub-journals and exclusive locking mode. Also a test script problem introduced by (6575). (CVS 6580) (check-in: [d67af3f5] user: danielk1977 branch: trunk, size: 202734)
09:10
[4c9c51dd] part of check-in [38f8c5a1] When SQLite is configured to use in-memory temp files (either by setting SQLITE_TEMP_STORE during compilation or using the temp_store pragma at run time), store statement/savepoint journals in memory also. Ticket #3825. (CVS 6575) (check-in: [38f8c5a1] user: danielk1977 branch: trunk, size: 202697)
2009-04-28
05:27
[1c41ddee] part of check-in [ad8aba3e] Avoid changing the pager journal-mode once a write-transaction is open, even if no database pages have been modified. (CVS 6554) (check-in: [ad8aba3e] user: danielk1977 branch: trunk, size: 201822)
2009-04-20
17:43
[adfdf98f] part of check-in [419e320a] Change the journal_mode pragma so that it always returns the current journal mode, even on a failed attempt to change the journal mode. Allow the journal mode to be changed as long as there is not a pending transaction. Ticket #3811. (CVS 6526) (check-in: [419e320a] user: drh branch: trunk, size: 201760)
11:34
[2ad6a948] part of check-in [5b7e3a41] Speed improvements by avoiding unnecessary calls to fstat() and ftruncate(). (CVS 6522) (check-in: [5b7e3a41] user: drh branch: trunk, size: 201633)
2009-04-11
16:27
[e8d2bb95] part of check-in [24ff4861] Fix an obscure problem with recovery from I/O errors while rolling back. (CVS 6498) (check-in: [24ff4861] user: drh branch: trunk, size: 201276)
09:51
[9775c0db] part of check-in [4447c94f] In sqlite3PagerMovepage(), avoid holding a reference to page number X when calling sqlite3PcacheRekey() to move another page to page number X. (CVS 6492) (check-in: [4447c94f] user: danielk1977 branch: trunk, size: 201251)
2009-04-05
12:22
[1df277b7] part of check-in [208382e0] Additional code to make sure and to assert that memory allocations have 8-byte alignment. Ticket #3777. (CVS 6450) (check-in: [208382e0] user: drh branch: trunk, size: 201264)
2009-04-04
15:53
[a8b53f7e] part of check-in [11c77f4c] Allow the journal_mode for in-memory databases to be either OFF or MEMORY, not just MEMORY. (CVS 6448) (check-in: [11c77f4c] user: drh branch: trunk, size: 201108)
2009-03-31
02:54
[34aeb87d] part of check-in [8c1d0c6a] Make sure a ROLLBACK that follows an incremental vacuum works. Ticket #3761. (CVS 6416) (check-in: [8c1d0c6a] user: drh branch: trunk, size: 200762)
2009-03-28
10:54
[7a2b4b11] part of check-in [9278f7b1] The fix in (6395) was not correct. Fix #3756 a different way. (CVS 6397) (check-in: [9278f7b1] user: danielk1977 branch: trunk, size: 200222)
06:59
[15eaf3d0] part of check-in [647e3b15] Fix readDbPage() so that if an SQLITE_IOERR_SHORT_READ is encountered, the page content is zeroed. Ticket #3756. (CVS 6395) (check-in: [647e3b15] user: danielk1977 branch: trunk, size: 200268)
2009-03-26
17:13
[6a932669] part of check-in [80241a05] Check that the first byte of a potentially hot journal file is non-zero before beginning hot-journal rollback. Fix for #3751 and #3745. (CVS 6390) (check-in: [80241a05] user: danielk1977 branch: trunk, size: 200206)
2009-03-23
04:33
[da7ffd06] part of check-in [db1d4d2f] Use the ROUND8() macro to round an integer up to the nearest multiple of 8 and ROUNDDOWN8() macro to round down to the nearest multiple of 8. This is a cosmetic change. (CVS 6372) (check-in: [db1d4d2f] user: danielk1977 branch: trunk, size: 199297)
2009-03-05
04:20
[01e3facb] part of check-in [6404afa0] Corrected typos and misspellings. Ticket #3702. (CVS 6336) (check-in: [6404afa0] user: shane branch: trunk, size: 199491)
2009-02-17
17:56
[d62fd62f] part of check-in [8c61968b] Initialize an uninitialized buffer to silence a valgrind warning during a VACUUM operation. (CVS 6297) (check-in: [8c61968b] user: danielk1977 branch: trunk, size: 199490)
16:17
[eede73b7] part of check-in [59a47551] Make sure result variables are initialized or unused following a failure of the xFullPathname VFS interface. Problem detected by valgrind. (CVS 6295) (check-in: [59a47551] user: drh branch: trunk, size: 199437)
2009-02-12
17:01
[d8d10a41] part of check-in [2fc450e8] Fix some edge cases with backing up databases that are exactly PENDING_BYTE bytes in size, or just slightly larger. (CVS 6288) (check-in: [2fc450e8] user: danielk1977 branch: trunk, size: 199364)
09:11
[57665d91] part of check-in [315a6692] Fix a case where during a rollback triggered by an IO or malloc error an unjournalled region of the database could be written to (with it's original data). This was causing an assert in test_journal.c to fail. Add a test case in ioerr2.test to trigger this case. (CVS 6286) (check-in: [315a6692] user: danielk1977 branch: trunk, size: 199447)
2009-02-04
19:16
[8c946cca] part of check-in [d4af60e5] If the truncate operation fails in journalmode=TRUNCATE, do not fall back to overwriting the journal header with zeros. Simply fail the operation. (CVS 6257) (check-in: [d4af60e5] user: drh branch: trunk, size: 199286)
10:09
[ce4a0a0f] part of check-in [20bd7605] Do not attempt to use the sub-journal file descriptor if it is not opened (as in journal_mode=off mode). Ticket #3636. (CVS 6252) (check-in: [20bd7605] user: danielk1977 branch: trunk, size: 199312)
01:49
[1181eac1] part of check-in [6301f08a] Remove compiler warnings under MSVC. (CVS 6249) (check-in: [6301f08a] user: shane branch: trunk, size: 199238)
2009-02-03
22:51
[b8f4ae64] part of check-in [7f827ba9] Correction to check-ins (6246) and (6247): The backup object might not hold a valid destination connection pointer. Also, do not reset the page cache when establishing a read-lock while there is a persistent or truncated journal, only if there is a journal that really needs to rollback. Otherwise backups always reset whenever the source database file is read. (CVS 6248) (check-in: [7f827ba9] user: drh branch: trunk, size: 199194)
16:51
[9e7c6db1] part of check-in [663479b4] Commit first version of the 'backup' feature. (CVS 6241) (check-in: [663479b4] user: danielk1977 branch: trunk, size: 198662)
2009-01-31
14:54
[72f4e7b3] part of check-in [407830c6] Avoid a segfault when running vacuum on an in-memory database. Ticket #3620. (CVS 6221) (check-in: [407830c6] user: danielk1977 branch: trunk, size: 197843)
2009-01-30
05:40
[3a36360a] part of check-in [c74c78e4] Minor changes to remove a few MSVC compiler warnings at /W3. Ticket #3610. (CVS 6215) (check-in: [c74c78e4] user: shane branch: trunk, size: 197912)
2009-01-24
11:30
[ce459ad5] part of check-in [bfc71edc] Fix some minor compiler warnings. Added sqlite3Isalpha() for use in the soundex() function. (CVS 6203) (check-in: [bfc71edc] user: drh branch: trunk, size: 197801)
2009-01-23
16:45
[be92682a] part of check-in [9c0b9f88] Optimization: When loading a new page into the cache, avoid redundant memset() calls to zero it. (CVS 6201) (check-in: [9c0b9f88] user: danielk1977 branch: trunk, size: 197775)
2009-01-22
17:12
[ce7118d5] part of check-in [78ae96de] Silence a C++ builder warning by writing "if( (rc = function())!=SQLITE_OK )" instead of "if( (rc = function()) )" in two places in pager.c. Ticket #3605. (CVS 6199) (check-in: [78ae96de] user: danielk1977 branch: trunk, size: 197753)
2009-01-20
17:06
[52fdfe6d] part of check-in [12f7346c] Big change to make pager.c easier to follow. Unused variables removed, comments improved, etc. (CVS 6197) (check-in: [12f7346c] user: danielk1977 branch: trunk, size: 197731)
2009-01-17
16:59
[bf917e86] part of check-in [502c66df] Fix a bug that was preventing SQLite from releasing locks properly under obscure circumstances. (CVS 6192) (check-in: [502c66df] user: danielk1977 branch: trunk, size: 161291)
2009-01-16
16:40
[e8e2ae1e] part of check-in [9f07d2d9] Fix a change-counter bug similar to #3584. This one is much more obscure though, requiring a transient IO or malloc error to occur while running in exclusive mode. (CVS 6189) (check-in: [9f07d2d9] user: danielk1977 branch: trunk, size: 161307)
16:23
[b99d1e9f] part of check-in [a353c1ab] Revert (6187). (CVS 6188) (check-in: [a353c1ab] user: danielk1977 branch: trunk, size: 160685)
15:21
[629e3c86] part of check-in [aa67fd0c] This commit is an error. Reverted by (6188). (CVS 6187) (check-in: [aa67fd0c] user: danielk1977 branch: trunk, size: 185997)
2009-01-14
23:03
[46ab8721] part of check-in [b676ccfd] Add asserts to detect if a transaction commits without first incrementing the transaction counter. These asserts are intended to prevent future problems similar to ticket #3584. (CVS 6179) (check-in: [b676ccfd] user: drh branch: trunk, size: 160677)
17:45
[add3461c] part of check-in [b7d2a477] Fix a problem with committing a transaction while there are other active statements. Sometimes, the database change counter was not being updated. (CVS 6176) (check-in: [b7d2a477] user: danielk1977 branch: trunk, size: 160293)
2009-01-13
16:03
[5a95868f] part of check-in [36fe9a7a] If the journal file is open when unlocking the database, close it just before unlocking the database file instead of just after. This may fix #3572. (CVS 6171) (check-in: [36fe9a7a] user: danielk1977 branch: trunk, size: 160260)
2009-01-11
17:00
[34fb9317] part of check-in [fd2bbcf8] Fix an assert() so that it works correctly with SQLITE_TEMP_STORE=3. (CVS 6167) (check-in: [fd2bbcf8] user: drh branch: trunk, size: 160243)
2009-01-10
17:57
[f53ff4e7] part of check-in [8f0672af] Remove the unused Pager.alwaysRollback flag. Fix a couple of comments in pager.c. (CVS 6161) (check-in: [8f0672af] user: danielk1977 branch: trunk, size: 160145)
17:02
[98c6b2aa] part of check-in [495f017e] Remove an faulty assertion inserted a few days ago. (CVS 6160) (check-in: [495f017e] user: drh branch: trunk, size: 160168)
16:15
[a1e23f2c] part of check-in [855c4093] Improve coverage of pager.c. (CVS 6158) (check-in: [855c4093] user: danielk1977 branch: trunk, size: 160627)
2009-01-09
17:11
[97bfbaca] part of check-in [0f3f9011] Increase pager.c coverage a bit. Fix an assert failure that can occur following a "PRAGMA omit_readlock" command on a read-only database. (CVS 6152) (check-in: [0f3f9011] user: danielk1977 branch: trunk, size: 159786)
2009-01-08
18:04
[1c02b407] part of check-in [44d3bfdd] Fix a comment in pager.c. No actual code changes. (CVS 6145) (check-in: [44d3bfdd] user: danielk1977 branch: trunk, size: 159788)
17:50
[35445d21] part of check-in [5a39525b] Fix a couple of potential corruption problems in pager.c. (CVS 6143) (check-in: [5a39525b] user: danielk1977 branch: trunk, size: 159756)
15:24
[2b35462d] part of check-in [1e53e382] Add a test script for ticket #2565. Change the assert() in pager.c into a testcase() macro. (CVS 6142) (check-in: [1e53e382] user: drh branch: trunk, size: 158023)
2009-01-07
18:08
[76d62924] part of check-in [ccc9c211] Make the same change as (6121) (accidentally reverted). Also enhance test_journal.c to catch this kind of bug. (CVS 6136) (check-in: [ccc9c211] user: danielk1977 branch: trunk, size: 158182)
15:33
[2fd6d5a8] part of check-in [15b5b5f9] Conjecture: a journal header with nRec==0 must be the last header in the journal. Add asserts to make this conjecture explicit. (CVS 6132) (check-in: [15b5b5f9] user: drh branch: trunk, size: 158182)
15:18
[a799290e] part of check-in [83d1eafb] Fix for 'truncate file' operations on in-memory databases. (CVS 6131) (check-in: [83d1eafb] user: danielk1977 branch: trunk, size: 157571)
10:52
[1af21dad] part of check-in [04387ae1] Add a comment to the openSubjournal() function in pager.c. (CVS 6130) (check-in: [04387ae1] user: danielk1977 branch: trunk, size: 158502)
10:35
[59a70fae] part of check-in [3a4bb832] Fix a problem with reverting a 'DROP TABLE' command executed inside of a savepoint on an auto-vacuum database. (CVS 6129) (check-in: [3a4bb832] user: danielk1977 branch: trunk, size: 158177)
02:03
[b2a42a1d] part of check-in [15b9dac4] Pager changes attempting to verify that ticket #2565 cannot recur. (CVS 6126) (check-in: [15b9dac4] user: drh branch: trunk, size: 157488)
2009-01-06
15:58
[8a64e448] part of check-in [ee7b4b60] Cleanup of the PAGERTRACE macro. Other comment changes in pager.c. (CVS 6122) (check-in: [ee7b4b60] user: drh branch: trunk, size: 152590)
15:28
[6825837d] part of check-in [ddc2ebfa] The fix in (6120) wasn't quite right. This fixes it. (CVS 6121) (check-in: [ddc2ebfa] user: danielk1977 branch: trunk, size: 153771)
15:20
[06f6e848] part of check-in [2cdbb468] Fix a recently introduced problem in "permutations.test autovacuum_crash". (CVS 6120) (check-in: [2cdbb468] user: danielk1977 branch: trunk, size: 153779)
14:34
[e93008f9] part of check-in [a64f3db0] Fix a memory leak in test_journal.c (test code). Also remove function pager_truncate_cache(), a wrapper around sqlite3PCacheTruncate(), from pager.c. (CVS 6118) (check-in: [a64f3db0] user: danielk1977 branch: trunk, size: 153737)
13:40
[9c9bc487] part of check-in [8c62ea4f] Add some savepoint related test cases and fix a few problems. (CVS 6116) (check-in: [8c62ea4f] user: danielk1977 branch: trunk, size: 154370)
2009-01-03
12:55
[b12dbe7e] part of check-in [50f57cd1] Fix a typo in a comment. (CVS 6106) (check-in: [50f57cd1] user: drh branch: trunk, size: 152338)
2009-01-02
21:39
[e8298757] part of check-in [4688e1c8] Memory allocation failure in Bitvec are probably all benign. Still, add code to check this, just to be sure. (CVS 6104) (check-in: [4688e1c8] user: drh branch: trunk, size: 152336)
21:08
[151cc073] part of check-in [3e9efb76] Reinitialize page 1 of the database file following a ROLLBACK TO of a transactional SAVEPOINT on an initially empty database. (CVS 6103) (check-in: [3e9efb76] user: drh branch: trunk, size: 151419)
18:10
[22f2896d] part of check-in [78dd7909] Fix compiler warnings in pager.c (CVS 6102) (check-in: [78dd7909] user: drh branch: trunk, size: 151334)
2009-01-01
15:20
[1610863d] part of check-in [9ff8598f] Fix a (benign) valgrind error that can occur following malloc failure while executing a 'ROLLBACK TO savepoint' command. (CVS 6096) (check-in: [9ff8598f] user: danielk1977 branch: trunk, size: 151476)
2008-12-27
15:23
[ec486337] part of check-in [08352f9e] Fix a problem with savepoint and incremental-vacuum. (CVS 6066) (check-in: [08352f9e] user: danielk1977 branch: trunk, size: 151476)
2008-12-23
19:15
[67af495b] part of check-in [26ceebf3] Fix a problem with the savepoint code and in-memory journals. (CVS 6061) (check-in: [26ceebf3] user: danielk1977 branch: trunk, size: 148792)
10:37
[5998dc0b] part of check-in [ae44e748] Fix a couple of assert() failures that can occur in btree.c and pager.c. (CVS 6055) (check-in: [ae44e748] user: danielk1977 branch: trunk, size: 148660)
2008-12-22
11:43
[59b87841] part of check-in [ee0e6eae] Changes to test scripts so that veryquick.test runs with SQLITE_TEMP_STORE=3 defined. Also a fix to stop the same switch causing a crash in the savepoint code. (CVS 6053) (check-in: [ee0e6eae] user: danielk1977 branch: trunk, size: 148634)
10:58
[4fc24d29] part of check-in [bb177e30] Add a case to permutations.test to run tests with the test_journal.c backend installed. Also many fixes to test_journal.c and one quite obscure fix to pager.c. (CVS 6052) (check-in: [bb177e30] user: danielk1977 branch: trunk, size: 148609)
2008-12-20
08:39
[5c2b49c3] part of check-in [68833626] Fix the crash-followed-by-corruption bug revealed by savepoint4.test. This is actually the same bug as was fixed by (6043). The fix was not entirely correct. (CVS 6047) (check-in: [68833626] user: danielk1977 branch: trunk, size: 148189)
2008-12-19
16:31
[7760272f] part of check-in [6f36c166] Add some crash-tests for savepoint. Fix a bug revealed by these tests. (CVS 6043) (check-in: [6f36c166] user: danielk1977 branch: trunk, size: 148002)
2008-12-18
18:31
[fa8a93af] part of check-in [d915718d] Increase test coverage of new savepoint code. (CVS 6040) (check-in: [d915718d] user: danielk1977 branch: trunk, size: 146777)
15:45
[9c1663c9] part of check-in [98a53d91] Add savepoint2.test, a file containing savepoint tests similar to tests in trans.test and avtrans.test. And a few savepoint bug fixes. (CVS 6039) (check-in: [98a53d91] user: danielk1977 branch: trunk, size: 146471)
2008-12-17
17:30
[dd1aba4a] part of check-in [34b56600] Add the savepoint feature. This feature is largely untested at this point. (CVS 6036) (check-in: [34b56600] user: danielk1977 branch: trunk, size: 146400)
2008-12-10
22:15
[7e8c2b7b] part of check-in [258722b6] Fix an issue with the new sqlite3Strlen30() introduced by check-in (6007). Additional casts for compiler warnings. (CVS 6011) (check-in: [258722b6] user: drh branch: trunk, size: 144992)
21:19
[ef93fb79] part of check-in [ea01d437] Additional work at eliminating silly compiler warnings. (CVS 6010) (check-in: [ea01d437] user: drh branch: trunk, size: 144856)
19:26
[64269ef1] part of check-in [c872d554] Never use strlen(). Use our own internal sqlite3Strlen30() which is guaranteed to never overflow an integer. Additional explicit casts to avoid nuisance warning messages. (CVS 6007) (check-in: [c872d554] user: drh branch: trunk, size: 144848)
16:45
[e72e92d4] part of check-in [da1cbfa7] Add explicit casts to silence nuisance warnings from VC++. (CVS 6004) (check-in: [da1cbfa7] user: drh branch: trunk, size: 144797)
2008-11-29
22:49
[a193da9e] part of check-in [2822cbb9] Fully initialize the unused bytes of the buffer that will become the journal file header, in order to silence a complaint from valgrind. (CVS 5968) (check-in: [2822cbb9] user: drh branch: trunk, size: 144798)
2008-11-26
14:55
[6d02bb99] part of check-in [8c0edbef] Port check-ins (5955) and (5956) into the 3.6.6 branch. (CVS 5958) (check-in: [8c0edbef] user: drh branch: branch_3_6_6, size: 144454)
07:25
[2e9182e1] part of check-in [1a66481a] Fix a couple of assert() failures provoked by running with a small default cache-size (64 pages). (CVS 5955) (check-in: [1a66481a] user: danielk1977 branch: trunk, size: 144458)
2008-11-21
09:09
[e5d12e7a] part of check-in [ddf980a5] Fix the problems demonstrated in tkt35xx.test in a different way to (5936). (CVS 5938) (check-in: [ddf980a5] user: danielk1977 branch: trunk, size: 144453)
03:23
[8e2ebfd2] part of check-in [faded96f] On a ROLLBACK, if there page cache entries which are dirty but not in the rollback journal, make sure they get reinitialized in the btree layer. (CVS 5936) (check-in: [faded96f] user: drh branch: trunk, size: 144980)
2008-11-19
18:30
[db12a833] part of check-in [e058f509] Update the SECURE_DELETE code to track the latest changes in the pager. (CVS 5928) (check-in: [e058f509] user: drh branch: trunk, size: 144755)
10:22
[ae5da38b] part of check-in [7bd1ac18] Simplify the way the pager layer invokes the busy-handler callback. (CVS 5922) (check-in: [7bd1ac18] user: danielk1977 branch: trunk, size: 144743)
2008-11-17
04:56
[d328fcea] part of check-in [cb6be84d] Modifications to pager.c to avoid the unsigned/signed warnings. (CVS 5909) (check-in: [cb6be84d] user: danielk1977 branch: trunk, size: 144623)
2008-11-13
14:28
[c3f46fcb] part of check-in [47866d67] Add an API to support custom page cache implementations. (CVS 5899) (check-in: [47866d67] user: danielk1977 branch: trunk, size: 144475)
2008-11-07
00:24
[6b6f8eb4] part of check-in [cf9d1d93] Prevent a rollback from crashing if the sector-size field of the rollback journal is corrupted. (CVS 5868) (check-in: [cf9d1d93] user: drh branch: trunk, size: 145216)
2008-11-03
20:55
[e9103fc8] part of check-in [fdb98fd8] Change the name of the Cursor object to VdbeCursor. (CVS 5857) (check-in: [fdb98fd8] user: drh branch: trunk, size: 145096)
2008-10-29
07:01
[847de90e] part of check-in [dc5308c7] If a hot-journal file is detected but the application does not have the required read/write permissions, return SQLITE_CANTOPEN. Prior to this change, SQLITE_BUSY was returned. Ticket #3457. (CVS 5849) (check-in: [dc5308c7] user: danielk1977 branch: trunk, size: 144977)
2008-10-22
16:26
[8377118b] part of check-in [b78f44c9] Make sure variable declarations occur first in code blocks. (CVS 5836) (check-in: [b78f44c9] user: shane branch: trunk, size: 145092)
2008-10-17
18:51
[fd11076a] part of check-in [39ebf01a] Add "pragma journal_mode=memory". Change the way rollback works for in-memory databases so that it reuses the journal_mode=memory code. (CVS 5830) (check-in: [39ebf01a] user: danielk1977 branch: trunk, size: 145098)
2008-10-07
11:51
[d98f5612] part of check-in [22d1feb9] Fix a problem with hot-journal rollback. SQLITE_CANTOPEN was being returned if the hot-journal file contained a pointer to a master journal file that did not exist. (CVS 5775) (check-in: [22d1feb9] user: danielk1977 branch: trunk, size: 146138)
2008-09-29
11:49
[44eba010] part of check-in [40425e93] Instead of storing a pointer to the parent page in the MemPage structure, have each B-Tree cursor keep track of the ancestry of the current page. (CVS 5747) (check-in: [40425e93] user: danielk1977 branch: trunk, size: 146131)
2008-09-26
21:08
[6426902b] part of check-in [7c561f2e] Add the "truncate" journal mode which commits transactions by truncating the rollback journal file to zero length and not calling fsync(). (CVS 5745) (check-in: [7c561f2e] user: drh branch: trunk, size: 146012)
2008-09-23
16:41
[7a3ba14e] part of check-in [046ef072] Always transform error code SQLITE_IOERR_NOMEM to SQLITE_NOMEM before returning. This was already happening in most places. (CVS 5738) (check-in: [046ef072] user: danielk1977 branch: trunk, size: 145726)
2008-09-19
09:14
[131746ea] part of check-in [75deaa44] Remove an obsolete layer of redirection in pager.c. (CVS 5723) (check-in: [75deaa44] user: danielk1977 branch: trunk, size: 145721)
2008-09-18
17:34
[bcfa1c40] part of check-in [6b998f30] Avoid parsing the structure of b-tree pages (in sqlite3BtreeInitPage) more than is necessary. (CVS 5720) (check-in: [6b998f30] user: danielk1977 branch: trunk, size: 146080)
2008-09-17
20:06
[34318b85] part of check-in [a7fd9e62] Speed improvements for in-memory databases by omitting flag clearing on pages where it is impossible for the flag to be set and by avoiding assert()s on non-debugging builds. Ticket #3384. (CVS 5715) (check-in: [a7fd9e62] user: drh branch: trunk, size: 146122)
2008-09-16
05:12
[f21654d1] part of check-in [aa5c9455] Do not attempt to change the page size after a pager has entered the error state (Pager.errCode!=SQLITE_OK). This prevents an assertion failure in vacuum3.test. (CVS 5703) (check-in: [aa5c9455] user: danielk1977 branch: trunk, size: 146272)
2008-09-11
10:29
[b1ea4870] part of check-in [f4293d14] Fix a couple of problems with variable initializations picked up by stricter compilers. (CVS 5691) (check-in: [f4293d14] user: danielk1977 branch: trunk, size: 146201)
2008-09-08
15:35
[2280eef4] part of check-in [a6dee85b] Fix a C++ism in pager.c (variable useAtomicWrite not declard at the top of its scope). (CVS 5683) (check-in: [a6dee85b] user: danielk1977 branch: trunk, size: 146200)
2008-09-03
00:08
[5a6b5908] part of check-in [c8b24bd1] If a rollback fails, mark the database as corrupt. (CVS 5668) (check-in: [c8b24bd1] user: drh branch: trunk, size: 146172)
2008-09-02
11:05
[24a49428] part of check-in [29c9a802] Add a 'const' to the opcodeProperty array in vdbe.c. (CVS 5661) (check-in: [29c9a802] user: danielk1977 branch: trunk, size: 145922)
2008-08-28
02:26
[032d1104] part of check-in [da177725] Miscellaneous cleanup in the new pcache code. (CVS 5629) (check-in: [da177725] user: drh branch: trunk, size: 145909)
2008-08-27
18:03
[84f4c171] part of check-in [9d7722f4] Do not mark pages as clean when doing a statement journal rollback. (CVS 5626) (check-in: [9d7722f4] user: drh branch: trunk, size: 145922)
15:16
[a3874281] part of check-in [9e932599] Use a bitvec object to store the set of pages with the 'always-rollback' property for a transaction. (CVS 5622) (check-in: [9e932599] user: danielk1977 branch: trunk, size: 145739)
09:44
[095efa75] part of check-in [7de32498] Remove unreachable branches from pcache.c. (CVS 5620) (check-in: [7de32498] user: danielk1977 branch: trunk, size: 145321)
2008-08-26
21:07
[66836244] part of check-in [226a9056] All the page_size pragma to change the page size on a new :memory: database, but not a vacuumed :memory: database. Ticket #3335 (CVS 5617) (check-in: [226a9056] user: drh branch: trunk, size: 145414)
18:05
[9dfaca6c] part of check-in [9e511e16] Simplify the pcache module by only recycling clean pages from 'other' caches. This commit causes errors in test files ioerr5.test and malloc5.test because they test recycling dirty pages from other caches. (CVS 5615) (check-in: [9e511e16] user: danielk1977 branch: trunk, size: 145323)
2008-08-25
17:23
[67d689ef] part of check-in [4ad096bd] Fix bug in the premutation testing that was causing many permutations from begin skipped. There are now 16 errors reported by the permutation test. (CVS 5610) (check-in: [4ad096bd] user: drh branch: trunk, size: 147037)
07:12
[a175ce0a] part of check-in [16f612d6] If the sector size is greater than the database page size, SQLite journals all pages that lie within a sector before writing to any of them. This change ensure that a journal sync does not occur halfway through journalling the set of pages that belong to a single sector. (CVS 5605) (check-in: [16f612d6] user: danielk1977 branch: trunk, size: 147050)
2008-08-23
18:53
[8fd88689] part of check-in [a323bd29] Instead of marking a page as clean when sqlite3PagerDontWrite() is called, set a dedictated flag - PGHDR_DONT_WRITE. (CVS 5604) (check-in: [a323bd29] user: danielk1977 branch: trunk, size: 146996)
2008-08-22
17:34
[62a0e18d] part of check-in [6de9c084] Remove dead code. (CVS 5601) (check-in: [6de9c084] user: drh branch: trunk, size: 146960)
16:22
[3b6625d3] part of check-in [93dbc542] When recycling a page, try to find one that does not require a call to xSync() on the journal file. Also simplify some of the mutex related things in pcache. (CVS 5597) (check-in: [93dbc542] user: danielk1977 branch: trunk, size: 147439)
12:57
[620b0c34] part of check-in [2a365e29] Fix nuisance compiler warnings. Ticket #3309. (CVS 5591) (check-in: [2a365e29] user: drh branch: trunk, size: 147321)
2008-08-21
12:19
[3a4358c7] part of check-in [d025866b] Fix the functionality associated with sqlite3_release_memory() and sqlite3_soft_heap_limit(). It is automatically disabled if the SQLITE_CONFIG_PAGECACHE option is used. (CVS 5576) (check-in: [d025866b] user: danielk1977 branch: trunk, size: 147333)
04:35
[08e257fe] part of check-in [5e9559c0] Remove leftover PGHDR_TO_DATA macro from pager.c. Ticket #3323. (CVS 5574) (check-in: [5e9559c0] user: danielk1977 branch: trunk, size: 147770)
2008-08-20
21:47
[79d4d332] part of check-in [4b0e67d3] Comment and function naming tweaks to pcache. No functionality changes. (CVS 5572) (check-in: [4b0e67d3] user: drh branch: trunk, size: 147770)
14:49
[9f813a8f] part of check-in [cb494e10] Add the pcache module from the experimental branch. Also change things so that most of the built-in SQL functions are kept in single static hash-table, rather than creating and populating a separate hash table for each open database connection. (CVS 5566) (check-in: [cb494e10] user: danielk1977 branch: trunk, size: 147731)
2008-08-02
03:50
[b6a366f2] part of check-in [f1e44eb3] Additional coverage testing. Fix a segfault following OOM in sqltie3_load_extension(). (CVS 5523) (check-in: [f1e44eb3] user: drh branch: trunk, size: 180952)
2008-08-01
10:50
[6ad4d2b9] part of check-in [70f20425] If xAccess() fails while attempting to detect a hot-journal file, do not assume that the error was an out-of-memory condition. (CVS 5515) (check-in: [70f20425] user: danielk1977 branch: trunk, size: 180805)
2008-07-22
05:18
[a6ecad26] part of check-in [16f51f9b] Changed a few loop counters to unsigned ints to remove compiler warnings. (CVS 5449) (check-in: [16f51f9b] user: shane branch: trunk, size: 180687)
2008-07-16
18:17
[e65d78bd] part of check-in [1d01c02a] Eliminate some unnecessary IO during a commit in full auto-vacuum mode. (CVS 5426) (check-in: [1d01c02a] user: danielk1977 branch: trunk, size: 180638)
2008-07-11
03:34
[bb286b2f] part of check-in [30825f74] Make the btree layer robust when faced with a corrupt database that contains duplicate entries on the freelist. Ticket #3209. (CVS 5392) (check-in: [30825f74] user: drh branch: trunk, size: 179928)
2008-07-10
00:32
[08169a94] part of check-in [636cd723] Remove unused code. Test coverage enhancements. Modify the algorithm used to select column names for VIEWs of joins so that the constructed column names omits the underlying table names. (CVS 5386) (check-in: [636cd723] user: drh branch: trunk, size: 179746)
2008-07-07
19:52
[2cd554d4] part of check-in [28f8b6bf] Make check-in (5356) compatible with builds that do not enable memory management. Remove unnecessary code from main.c. Add out-of-memory tests for sqlite3_complete16(). (CVS 5357) (check-in: [28f8b6bf] user: drh branch: trunk, size: 180090)
18:42
[a3a916b7] part of check-in [fbd320ed] Fix an error introduced by (5346). The list could become corrupted when the database was truncated. (CVS 5356) (check-in: [fbd320ed] user: danielk1977 branch: trunk, size: 180052)
11:18
[4c4d0529] part of check-in [71d699de] Make the Pager.pAll linked-list doubly linked when ENABLE_MEMORY_MANAGEMENT is defined. This is used to speed up sqlite3_release_memory(). (CVS 5346) (check-in: [71d699de] user: danielk1977 branch: trunk, size: 179982)
2008-06-20
14:59
[e2a49872] part of check-in [56c8af14] Add a mode to the sqlite3_test_control() interface to register hooks called at the beginning and end of "benign malloc failure" blocks. This allows malloc() failure testing to be done using public APIs only. (CVS 5254) (check-in: [56c8af14] user: danielk1977 branch: trunk, size: 179508)
2008-06-18
17:09
[2f5f55a9] part of check-in [5059644c] Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration modes. (CVS 5234) (check-in: [5059644c] user: danielk1977 branch: trunk, size: 179564)
2008-06-17
15:12
[124b3eae] part of check-in [3e797d0f] Add internal interfaces: PageMalloc/PageFree and ScratchMalloc/ScratchFree. (CVS 5226) (check-in: [3e797d0f] user: drh branch: trunk, size: 179580)
2008-06-15
02:51
[5599fb3e] part of check-in [65fe7b62] Continuing work on the new memory allocation subsystem. Added routines for temporary memory allocation. Right the btree balance mechanism to only do one temporary allocation at a time. (CVS 5220) (check-in: [65fe7b62] user: drh branch: trunk, size: 179539)
2008-06-07
08:58
[be98ceeb] part of check-in [e9f01c01] Change the signature of sqlite3PagerPagecount() so that it can return an error code. (CVS 5195) (check-in: [e9f01c01] user: danielk1977 branch: trunk, size: 179555)
05:19
[7ce0a4ab] part of check-in [9f5cbe29] Do not call xSync() from zeroJournalHdr() if the Pager.noSync flag is set (i.e. for temp files). (CVS 5194) (check-in: [9f5cbe29] user: danielk1977 branch: trunk, size: 179506)
2008-06-06
16:14
[1f3e20af] part of check-in [de8b87d6] Avoid attempting to delete the journal file of a temporary pager when closing the pager. It will be deleted automatically by the OS layer. (CVS 5193) (check-in: [de8b87d6] user: danielk1977 branch: trunk, size: 179408)
11:11
[b07ae2a2] part of check-in [5173b3e8] Remove the xGetTempname() method from the vfs structure. Temp files are now opened by passing a NULL pointer as the filename to xOpen(). (CVS 5190) (check-in: [5173b3e8] user: danielk1977 branch: trunk, size: 179387)
2008-06-05
11:39
[91279293] part of check-in [4226ac54] Modify the signatures of the sqlite3_vfs.xAccess and sqlite3_vfs.xCheckReservedLock functions. (CVS 5188) (check-in: [4226ac54] user: danielk1977 branch: trunk, size: 180081)
2008-06-04
06:45
[d55885a3] part of check-in [5c59f469] Add "pragma journal_size_limit", used to limit the space consumed by persistent journal files left in the file-system after a transaction has concluded in exclusive (or journal_mode=persist) mode. (CVS 5185) (check-in: [5c59f469] user: danielk1977 branch: trunk, size: 180087)
2008-05-21
15:38
[d0a77fee] part of check-in [25b9f3b9] Add the "volatile" keyword to variables in the Pager structure used for synchronization when memory management is enabled. (CVS 5153) (check-in: [25b9f3b9] user: drh branch: trunk, size: 179094)
2008-05-20
07:05
[baf3c74d] part of check-in [ffd4e50a] Do not attempt to write a master journal name to the (non-existent) journal file in "no-journal" mode. Fix for #3127. (CVS 5145) (check-in: [ffd4e50a] user: danielk1977 branch: trunk, size: 179102)
2008-05-15
11:08
[43f5f67f] part of check-in [443cf105] If a pager is already in the error-state when CommitPhaseOne() is called, exit early. (CVS 5134) (check-in: [443cf105] user: danielk1977 branch: trunk, size: 178998)
08:34
[eae53a80] part of check-in [10ea8287] Do not write pages to disk to free memory after an IO error occurs. (CVS 5132) (check-in: [10ea8287] user: danielk1977 branch: trunk, size: 178940)
2008-05-13
13:27
[2607309c] part of check-in [a9d1d931] Make the benign-fault setting recursive. Make all malloc failures during a rollback benign since there is nothing we can do about them. (CVS 5128) (check-in: [a9d1d931] user: drh branch: trunk, size: 178819)
00:58
[8c222e8a] part of check-in [f1ed3689] Update the pager so that it does not try to commit a transaction if there have been no changes to the database. (CVS 5127) (check-in: [f1ed3689] user: drh branch: trunk, size: 178720)
2008-05-09
16:57
[c4e0bcb1] part of check-in [7a44fb96] Fix a problem with recovering from an IO error in exclusive-locking mode. (CVS 5112) (check-in: [7a44fb96] user: danielk1977 branch: trunk, size: 177970)
2008-05-07
19:11
[fc173b7e] part of check-in [e98a7f87] Fix some problems with multi-file transactions in persistent journal mode. (CVS 5102) (check-in: [e98a7f87] user: danielk1977 branch: trunk, size: 177957)
12:45
[547079d3] part of check-in [438d77a7] Fix a null-pointer dereference that can occur following a DISKFULL error while running VACUUM. (CVS 5096) (check-in: [438d77a7] user: drh branch: trunk, size: 176978)
12:29
[bc506fe9] part of check-in [d15d0bba] Omit mutex variables in the pager when threadsafe is disabled. (CVS 5095) (check-in: [d15d0bba] user: drh branch: trunk, size: 176934)
2008-05-06
18:13
[22a5a810] part of check-in [4a1ae9d0] Fix a bug whereby the database file was not always being extended to its original size when rolling back an incremental-vacuum operation. (CVS 5089) (check-in: [4a1ae9d0] user: danielk1977 branch: trunk, size: 176942)
2008-05-05
16:23
[5ac6728c] part of check-in [4ad18091] If an IO error occurs while locking the database and checking the cache validity, unlock the database before returning. Ticket #3030. (CVS 5083) (check-in: [4ad18091] user: danielk1977 branch: trunk, size: 176788)
2008-05-01
17:16
[2d495e9a] part of check-in [59568844] Fix more compiler warnings. (CVS 5074) (check-in: [59568844] user: drh branch: trunk, size: 176616)
17:03
[fd4e176c] part of check-in [227a6f67] Fix harmless compiler warnings. (CVS 5073) (check-in: [227a6f67] user: drh branch: trunk, size: 176484)
2008-04-29
15:38
[268be120] part of check-in [f854ae57] Zero the per-pager temporary space allocation to avoid warnings from valgrind. (CVS 5068) (check-in: [f854ae57] user: drh branch: trunk, size: 176990)
2008-04-25
12:25
[2361c00a] part of check-in [7f805392] Clarify some comments. No changes to code. (CVS 5049) (check-in: [7f805392] user: drh branch: trunk, size: 176995)
2008-04-24
12:37
[90df64b9] part of check-in [709d17b1] Fix an assert() failure that can occur if "journal_mode=off" is used in a build with the atomic-write optimization enabled. (CVS 5043) (check-in: [709d17b1] user: danielk1977 branch: trunk, size: 176501)
2008-04-22
17:15
[21d426c6] part of check-in [5896ae3d] Always sync the journal file after zeroing out the header. (CVS 5036) (check-in: [5896ae3d] user: drh branch: trunk, size: 176381)
14:31
[e164d0fc] part of check-in [dfacddbb] Avoid non-contiguous writes when creating a journal header. (CVS 5035) (check-in: [dfacddbb] user: danielk1977 branch: trunk, size: 176282)
2008-04-19
20:53
[008ec5a6] part of check-in [e29b870e] Add some tests for journal_mode=off. Need to come up with a way of handling rollback attempts when there is no journal. (CVS 5034) (check-in: [e29b870e] user: drh branch: trunk, size: 176375)
20:34
[c768b505] part of check-in [277e4099] Continuing work on journal_mode. Journal_mode=persist now appears to be working, though additional testing would be welcomed. (CVS 5033) (check-in: [277e4099] user: drh branch: trunk, size: 176530)
2008-04-17
20:59
[60c81c92] part of check-in [4a72a7bb] Continuing progress on the journal_mode pragma. It still does not work. (CVS 5027) (check-in: [4a72a7bb] user: drh branch: trunk, size: 176394)
17:02
[84dc8bc0] part of check-in [8eaa0c71] Add the journal_mode pragma. This is currently just syntax - it is not operational. (CVS 5024) (check-in: [8eaa0c71] user: drh branch: trunk, size: 176266)
14:16
[13f1aca7] part of check-in [8efb7f4f] In exclusive locking mode, commit by zeroing the first 28 bytes of the journal file, not by truncating the journal. Overwriting is much faster than truncating. (CVS 5023) (check-in: [8efb7f4f] user: drh branch: trunk, size: 175366)
2008-04-14
23:13
[fc7c415f] part of check-in [7bb9a416] Do not attempt to write to temporary database files that have never been opened. (CVS 5007) (check-in: [7bb9a416] user: drh branch: trunk, size: 175840)
16:37
[e21ab9dd] part of check-in [aa16eb57] Do not set the pager to persistent error state if a call to OsAccess() fails. (CVS 5004) (check-in: [aa16eb57] user: danielk1977 branch: trunk, size: 175594)
01:00
[1cd9efd9] part of check-in [40ba51fd] Get the SQLITE_SECURE_DELETE compile-time option working again. Ticket #3050. (CVS 4999) (check-in: [40ba51fd] user: drh branch: trunk, size: 175607)
2008-04-03
10:13
[7b302d90] part of check-in [fd97f876] Change the allocator in mem2.c (used when SQLITE_MEMDEBUG is defined) so that allocations are not rounded up to the nearest 4 byte boundary. Fix a couple of errors in malloc.test related to sqlite3OsAccess() returning -1. (CVS 4956) (check-in: [fd97f876] user: danielk1977 branch: trunk, size: 175876)
2008-03-28
17:41
[f8f61c34] part of check-in [17ea0c97] Change the pager's sector size algorithm to the maximum of the size reported by xSectorSize() from the VFS and 512. It was using the maximum of xSectorSize() and the current page size, but that was adding an extra 512 bytes to the size of the journal file in the common case. (CVS 4929) (check-in: [17ea0c97] user: drh branch: trunk, size: 175651)
2008-03-27
22:42
[1cfa9b04] part of check-in [3cb704c4] Allow the xAccess method in the VFS to return -1 to signal an I/O error, and in particular an SQLITE_IOERR_NOMEM. (CVS 4925) (check-in: [3cb704c4] user: drh branch: trunk, size: 175487)
2008-03-20
11:04
[22241b59] part of check-in [871df0e7] Allow a VACUUM operation to change the page-size in the same way as it can be used to change a database between auto-vacuum and normal mode. (CVS 4896) (check-in: [871df0e7] user: danielk1977 branch: trunk, size: 175253)
04:45
[d3448e06] part of check-in [79f573cc] Write the page-size into the first journal-header of each journal file. (CVS 4894) (check-in: [79f573cc] user: danielk1977 branch: trunk, size: 174768)
2008-03-19
14:15
[ed2fc0ff] part of check-in [15110ea0] Add a new api sqlite3_randomness() for providing access to SQLite's internal PRNG. Add sqlite3_test_control() verbs for controlling the PRNG. (CVS 4882) (check-in: [15110ea0] user: drh branch: trunk, size: 174285)
2008-03-17
13:50
[2ebd8957] part of check-in [72c40726] Put the statement journal in the temp-file directory since that directory is often on optimized storage such as RAM disk and because unlike the main journal, the statement journal does not need to be colocated with the database file. (CVS 4868) (check-in: [72c40726] user: drh branch: trunk, size: 174284)
2008-03-14
19:33
[c2cabad8] part of check-in [66777f04] Reset the busy callback iteration counter at the beginning of each lock test loop. (CVS 4864) (check-in: [66777f04] user: drh branch: trunk, size: 173805)
2008-03-10
14:12
[8c709d6f] part of check-in [d4ab14b9] Add explicit !=0 tests in order to suppress warning messages in Borland-C. Ticket #2985 (CVS 4850) (check-in: [d4ab14b9] user: drh branch: trunk, size: 173741)
2008-03-07
20:14
[d8690e16] part of check-in [22bd537e] Another fix to the OsUnlock I/O error logic. (CVS 4839) (check-in: [22bd537e] user: drh branch: trunk, size: 173738)
19:51
[803d361f] part of check-in [b4c1258e] Correctly handle I/O errors that occur during OsUnlock(). Before this fix, an I/O error during OsUnlock() could lead to database corruption. That is not a serious problem, though, since errors during OsUnlock() are not possible on most systems. (CVS 4838) (check-in: [b4c1258e] user: drh branch: trunk, size: 173741)
2008-02-26
18:40
[d09885bb] part of check-in [690d05ce] Fix a math error when computing how much memory to allocate for a new pager. (CVS 4812) (check-in: [690d05ce] user: drh branch: trunk, size: 173572)
16:16
[ee55f9c2] part of check-in [afe49d81] Add commentary to clarify what is happening when an I/O error occurs while writing dirty pages to the database file. (CVS 4811) (check-in: [afe49d81] user: drh branch: trunk, size: 173568)
14:46
[1d5d4167] part of check-in [942daf94] Add an assert() to verify that the dirty-page list in the pager is valid before using it. (CVS 4810) (check-in: [942daf94] user: drh branch: trunk, size: 173226)
06:05
[80d9294a] part of check-in [427e7f8b] Have sqlite3PagerPagecount() return -1 when the pager is in error state. Fix for #2961. (CVS 4809) (check-in: [427e7f8b] user: danielk1977 branch: trunk, size: 172887)
2008-02-18
22:24
[caa7c06d] part of check-in [63da5d97] Add the memory fault simulator to mem5.c. Enable soft heap limit on mem5.c. Limit the size of hash tables and the vdbefifo when using mem5.c. (CVS 4795) (check-in: [63da5d97] user: drh branch: trunk, size: 172877)
14:47
[d9aeb0a1] part of check-in [7c57bdbc] Add the Bitvec object for tracking which pages have been journalled. This reduces memory consumption and runs faster than the bitmap approach it replaced. (CVS 4794) (check-in: [7c57bdbc] user: drh branch: trunk, size: 172697)
2008-02-14
23:26
[1960545a] part of check-in [669ece8c] Add the experimental mem5.c memory allocator. Allocate the content part of cache pages separately from the header. (See check-ins (4495) and (4409)). (CVS 4789) (check-in: [669ece8c] user: drh branch: trunk, size: 173250)
2008-02-02
20:47
[2ed81808] part of check-in [fccb217d] Delete unused "pager3_refinfo_enable" flag and its associated debugging macros. Ticket #2923. (CVS 4774) (check-in: [fccb217d] user: drh branch: trunk, size: 173038)
2008-01-22
21:30
[d8c2f06c] part of check-in [1a335e18] Add the fault injector module in fault.c. Use it as a basis for memory allocation failure testing. (CVS 4742) (check-in: [1a335e18] user: drh branch: trunk, size: 173597)
2008-01-21
13:04
[fae75270] part of check-in [3d4252b0] Remove some unused branches from internal function sqlite3PagerDontRollback(). (CVS 4733) (check-in: [3d4252b0] user: danielk1977 branch: trunk, size: 173532)
2008-01-18
13:42
[a55923e2] part of check-in [65245d99] Add a test (and fix) for possible corruption if malloc() fails during a CREATE INDEX statement, the application continues with the transaction, then crashes. (CVS 4725) (check-in: [65245d99] user: danielk1977 branch: trunk, size: 172840)
11:33
[cf40ab8f] part of check-in [87534dff] Add a couple of missing calls to pagerLeave(). (CVS 4724) (check-in: [87534dff] user: danielk1977 branch: trunk, size: 172273)
2007-12-13
21:54
[0cb6ccea] part of check-in [4e91a267] Change all instances of "it's" in comments to either "its" or "it is", as appropriate, in case the comments are ever again read by a pedantic grammarian. Ticket #2840. (CVS 4629) (check-in: [4e91a267] user: drh branch: trunk, size: 172179)
2007-12-11
19:34
[50d373df] part of check-in [a5d81cd3] Build the CLI using the amalgamation. Relax the limit on SQL statement length when building the CLI. (CVS 4609) (check-in: [a5d81cd3] user: drh branch: trunk, size: 172186)
2007-12-07
18:55
[2f420d46] part of check-in [c9eb6591] In shared-cache mode, make sure the busy hander invoked is the busy handler associated with the database connection that caused the lock contention in the first place. (CVS 4598) (check-in: [c9eb6591] user: drh branch: trunk, size: 172187)
2007-11-29
18:44
[65298fee] part of check-in [7d2f6a1d] Make sure we never try to "truncate" a file to a larger size. (CVS 4582) (check-in: [7d2f6a1d] user: drh branch: trunk, size: 172014)
2007-11-28
16:19
[bb524fe4] part of check-in [98960132] Change the BTree so that it uses the Pagers temporary page space when reorganizing the rows on a page, rather than mallocing for space of its own. In this way, we avoid having to deal with a malloc failure deep down inside the page reorganizer. Ticket #2806 (CVS 4577) (check-in: [98960132] user: drh branch: trunk, size: 171369)
2007-11-27
16:55
[b1eaca42] part of check-in [eeec8d27] Fix a bug that can cause a segfault on win32 systems following an I/O error. (CVS 4565) (check-in: [eeec8d27] user: drh branch: trunk, size: 170926)
2007-11-05
15:30
[c5ffa55c] part of check-in [b752906e] Fix some minor problems with malloc failure and in-memory databases. (CVS 4527) (check-in: [b752906e] user: danielk1977 branch: trunk, size: 170894)
2007-10-20
13:17
[a464ba8e] part of check-in [f56c9884] Go back to allocating each page and its header with a single memory allocation. This undoes the change of (4409). (CVS 4495) (check-in: [f56c9884] user: drh branch: trunk, size: 170854)
2007-10-03
15:22
[0a92a081] part of check-in [3d1d13d1] Fix a memory leak that could occur during error-state recovery. (CVS 4457) (check-in: [3d1d13d1] user: danielk1977 branch: trunk, size: 171136)
08:46
[40381e16] part of check-in [12eca32a] Add automatic recovery from the pager "error-state". Also add a new error code - SQLITE_IOERR_NOMEM. (CVS 4454) (check-in: [12eca32a] user: danielk1977 branch: trunk, size: 170954)
2007-09-17
07:02
[d246d888] part of check-in [8b29f5fb] Add a parameter to specify the size of the output buffer passed to xGetTempname() and xFullPathname(). This, and the previous commit, are changes to the public vfs API introduced in 3.5.0. (CVS 4433) (check-in: [8b29f5fb] user: danielk1977 branch: trunk, size: 168149)
06:06
[f38ad4de] part of check-in [ad3687b1] Change the names of xGetTempName and sqlite3OsGetTempName to xGetTempname. To be consistent with xFullPathname and sqlite3OsFullPathname. (CVS 4432) (check-in: [ad3687b1] user: danielk1977 branch: trunk, size: 168102)
2007-09-10
06:12
[7245c8a5] part of check-in [48e59c74] Fix an undeclared identifier in an IOTRACE (debugging) block. (CVS 4416) (check-in: [48e59c74] user: danielk1977 branch: trunk, size: 168102)
2007-09-06
23:28
[70b4b9b6] part of check-in [44d8d1e9] Base the name of the statement journal on the original database filename. Remember the statement journal name for the lifetime of the Pager so that the name pointer passed to xOpen persists as long as the file exists. (CVS 4410) (check-in: [44d8d1e9] user: drh branch: trunk, size: 168082)
22:19
[10a95d93] part of check-in [2b755def] Allocate page cache headers and page cache data buffers separately. The data buffer will be a power of two in size and this gives some malloc implementation additional optimization opportunitites. (CVS 4409) (check-in: [2b755def] user: drh branch: trunk, size: 168239)
2007-09-03
15:19
[0ce52a22] part of check-in [020a2b10] Honor the SQLITE_OPEN_ flags passed into sqlite3_open_v2(). Some test cases added but more are needed. Ticket #2616. (CVS 4376) (check-in: [020a2b10] user: drh branch: trunk, size: 168043)
2007-09-01
16:16
[ac52bb1e] part of check-in [fb27692a] Remove the syncOk argument to pager_recycle. Now that sqlite3_memory_release uses a global lru list of page, it is no longer required. (CVS 4364) (check-in: [fb27692a] user: danielk1977 branch: trunk, size: 167906)
2007-08-31
18:34
[9b898267] part of check-in [306586c4] Remove the xLockState method for sqlite3_io_methods. Replace it with a defined call to xFileControl(). This simplifies the interface and also gives us coverage testing of sqlite3_file_control(). (CVS 4355) (check-in: [306586c4] user: drh branch: trunk, size: 167803)
16:11
[0c5fd990] part of check-in [d3ab3e39] Initial implementation of the sqlite3_file_control() interface. Compiles and passes all historical tests but the new method is itself untested. (CVS 4353) (check-in: [d3ab3e39] user: drh branch: trunk, size: 168121)
2007-08-30
08:08
[847674a7] part of check-in [481fd3a8] Add tests for malloc() failure when the atomic-write optimization is being used. Also fix things so that rollback can occur without a malloc(), even if there is a master journal file. (CVS 4330) (check-in: [481fd3a8] user: danielk1977 branch: trunk, size: 167910)
2007-08-29
12:31
[f9830adf] part of check-in [e38ef81b] Modifications to the malloc failure tests to test transient and persistent failures. (CVS 4321) (check-in: [e38ef81b] user: danielk1977 branch: trunk, size: 167402)
2007-08-28
22:24
[97fd0bb8] part of check-in [967ab229] Clean up the locking in the btree logic. (CVS 4316) (check-in: [967ab229] user: drh branch: trunk, size: 167104)
08:00
[51ca2763] part of check-in [0b801688] Add some comments and test-cases for the global lru page list (used by sqlite3_release_memory()). (CVS 4308) (check-in: [0b801688] user: danielk1977 branch: trunk, size: 166986)
2007-08-27
17:27
[cfa6dc38] part of check-in [5626ce0b] Modify sqlite3_release_memory() to use a global LRU list of pages. Untested. (CVS 4301) (check-in: [5626ce0b] user: danielk1977 branch: trunk, size: 164413)
2007-08-24
16:29
[b076458d] part of check-in [300038be] Fix bugs in temp database handling introduced by the prevous check-in. (CVS 4288) (check-in: [300038be] user: drh branch: trunk, size: 162857)
16:08
[f5c2a4e8] part of check-in [b8451da3] Remove nRef and vfsMutex from the sqlite3_vfs structure. Omit the sqlite3_vfs_release() interface. Less memory allocated for a pager in the common case where the size of the pathname is less than MAX_PATH. (CVS 4287) (check-in: [b8451da3] user: drh branch: trunk, size: 162729)
11:52
[6c9622a1] part of check-in [13dda2e8] Select the default page size for new databases based on the sector-size and IOCAP flags. (CVS 4286) (check-in: [13dda2e8] user: danielk1977 branch: trunk, size: 162333)
08:15
[a46c807f] part of check-in [bdf5cb8d] Add tests to simulate power-failure on devices that support IOCAP_SEQUENTIAL or IOCAP_SAFE_APPEND. (CVS 4284) (check-in: [bdf5cb8d] user: danielk1977 branch: trunk, size: 161009)
03:51
[89dfc6a0] part of check-in [3a68fcdd] The win32 driver compiles but does not yet work well. Many bugs fixed. (CVS 4282) (check-in: [3a68fcdd] user: drh branch: trunk, size: 160804)
2007-08-23
14:48
[08794398] part of check-in [59556849] Add code to reduce rollback journal i/o based on IOCAP flags. As yet untested. (CVS 4278) (check-in: [59556849] user: danielk1977 branch: trunk, size: 160709)
11:47
[896e95aa] part of check-in [cf4e3c15] Ensure temporary files are deleted when they are closed. (CVS 4277) (check-in: [cf4e3c15] user: danielk1977 branch: trunk, size: 158959)
11:07
[7b0eee5f] part of check-in [5f0fb894] Add some further tests and a bugfix for the atomic-write optimization. (CVS 4276) (check-in: [5f0fb894] user: danielk1977 branch: trunk, size: 158918)
2007-08-22
22:04
[54087a81] part of check-in [205d0b88] All of the malloc test cases run. Still seeing failures in malloc4.test. (CVS 4272) (check-in: [205d0b88] user: drh branch: trunk, size: 158910)
18:54
[029a4412] part of check-in [b6399dff] Fix a bug in the logic for journaling pages when the device sector-size is greater than the page size. (CVS 4270) (check-in: [b6399dff] user: danielk1977 branch: trunk, size: 158615)
11:22
[3568c1c5] part of check-in [581fadfe] Add code for the atomic-write optimisation. Disabled by default. (CVS 4268) (check-in: [581fadfe] user: danielk1977 branch: trunk, size: 157836)
00:39
[d68e8c7b] part of check-in [1914044b] Reenable the memory management logic. The quick.test script now runs with SQLITE_MEMDEBUG and SQLITE_ENABLE_MEMORY_MANAGEMENT. 7 minor errors. (CVS 4265) (check-in: [1914044b] user: drh branch: trunk, size: 154967)
2007-08-21
14:27
[df16604a] part of check-in [3fb97a63] Delay opening temporary pager files until they are first written. (CVS 4260) (check-in: [3fb97a63] user: danielk1977 branch: trunk, size: 152461)
10:44
[bb25ee85] part of check-in [fbbd5bda] Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255) (check-in: [fbbd5bda] user: drh branch: trunk, size: 151241)
2007-08-20
16:07
[53af3942] part of check-in [91779041] Call sqlite3OsSleep() with an argument in microseconds, not milliseconds. (CVS 4248) (check-in: [91779041] user: danielk1977 branch: trunk, size: 151284)
05:36
[2771a39e] part of check-in [cb24cda1] Fix full_fsync() related functionality broken as part of the migration to sqlite3_vfs. (CVS 4243) (check-in: [cb24cda1] user: danielk1977 branch: trunk, size: 151409)
2007-08-18
10:59
[e7b94954] part of check-in [a258c4ec] Further progress on migration to sqlite3_vfs. (CVS 4242) (check-in: [a258c4ec] user: danielk1977 branch: trunk, size: 151214)
2007-08-17
15:53
[ee60b932] part of check-in [af3e3c7a] Begin migration to using sqlite3_vfs interface. (CVS 4240) (check-in: [af3e3c7a] user: danielk1977 branch: trunk, size: 150810)
2007-08-16
10:09
[812a3f78] part of check-in [77b16713] More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233) (check-in: [77b16713] user: danielk1977 branch: trunk, size: 149423)
04:30
[ddb0279c] part of check-in [deb7ecd6] Half-way through a major refactoring of the memory allocation. I have not even attempted to compile so I am certain there are countless errors. (CVS 4231) (check-in: [deb7ecd6] user: drh branch: trunk, size: 149223)
2007-08-15
17:08
[05ea9dcb] part of check-in [af9503da] Modify the crash-recovery test code in test6.c for 3.5. Also change some other code to use the new sqlite3_io_methods interface. Lots of things are broken now. (CVS 4228) (check-in: [af9503da] user: danielk1977 branch: trunk, size: 149127)
2007-08-14
13:20
[f4bc6263] part of check-in [f0029da3] Back-port critical soft heap limit fixes to version 3.3.17. The following check-ins were back-ported: (4031), (4037), (4097), (4202), (4203), (4207), (4208), (4214). (CVS 4222) (check-in: [f0029da3] user: drh branch: branch_3_3_17, size: 143637)
2007-08-11
00:26
[cdf561d3] part of check-in [7961a738] Backout check-in (4206) and replace it with a much better and more general fix for the problem identified in ticket #2565. (CVS 4208) (check-in: [7961a738] user: drh branch: trunk, size: 149654)
2007-08-10
23:56
[7a96ab0d] part of check-in [51f3e01b] Fix some incorrect asserts() in the pager - problems brought to light by the new soft-heap-limit testing apparatus of check-in (4202). (CVS 4207) (check-in: [51f3e01b] user: drh branch: trunk, size: 149419)
23:54
[e4fec09c] part of check-in [7ed2f59e] Fix the corruption problem of ticket #2565 as demonstrated by the test added in (4204). There may yet be other instances of similar problems lurking in the code. (CVS 4206) (check-in: [7ed2f59e] user: drh branch: trunk, size: 149289)
2007-08-07
17:13
[7e4a5766] part of check-in [7550dd1d] Remove all tabs from source code files. Ticket #2556. (CVS 4198) (check-in: [7550dd1d] user: drh branch: trunk, size: 149273)
2007-07-20
00:33
[79a4587c] part of check-in [31dba1e9] Cleanup unused function in pager.c. This is the conclusion of the fix to ticket #2518. We believe the fix is complete and correct. (CVS 4165) (check-in: [31dba1e9] user: drh branch: trunk, size: 149252)
2007-07-19
16:35
[ce52bc1b] part of check-in [75263797] Preliminary fix for ticket #2518. Make sure the VACUUM command increments the change counter. (CVS 4163) (check-in: [75263797] user: drh branch: trunk, size: 149501)
2007-06-26
22:10
[43e9bffb] part of check-in [338c1879] Remove vestigal code from Makefile.linux-gcc. Ticket #2466. (CVS 4133) (check-in: [338c1879] user: drh branch: trunk, size: 149540)
2007-06-18
17:25
[39352b58] part of check-in [ba967bbb] Bring the pager_datahash() macro into sync with its function definition. Ticket #2422. (CVS 4087) (check-in: [ba967bbb] user: drh branch: trunk, size: 149543)
2007-06-16
18:39
[9eeb505a] part of check-in [4cff47b0] Fix a faulty assert() in the pager. (CVS 4083) (check-in: [4cff47b0] user: drh branch: trunk, size: 149541)
11:17
[d7e2b57f] part of check-in [57bf8204] A minor logic correction in the previous check-in. Also added a lengthy comment describing the meanings of various flags in the {quote: PgHdr} structure. (CVS 4080) (check-in: [57bf8204] user: drh branch: trunk, size: 149509)
04:42
[a8e5c2fd] part of check-in [c9dcf2b9] Fix a database corruption problem that can occur in auto-vacuum mode when a malloc() failure causes a statement rollback, additional statements are run in the same transaction, then the total transaction rolls back. (CVS 4079) (check-in: [c9dcf2b9] user: drh branch: trunk, size: 145864)
03:06
[a4a02246] part of check-in [dcdb20f8] Additional debugging instrumentation added to the pager. (CVS 4078) (check-in: [dcdb20f8] user: drh branch: trunk, size: 145578)
2007-06-13
15:22
[42cffb2e] part of check-in [ce2c9925] Fix for #2409. Return SQLITE_IOERR_BLOCKED instead of SQLITE_BUSY in cases where failure to obtain a database lock leaves the cache in an inconsistent state. See additional information at CorruptionFollowingBusyError. (CVS 4060) (check-in: [ce2c9925] user: danielk1977 branch: trunk, size: 145071)
2007-05-24
09:41
[a193f8f0] part of check-in [16c8e9c2] Remove an assert() statement that may not be true if an IO or malloc error has occured. (CVS 4037) (check-in: [16c8e9c2] user: danielk1977 branch: trunk, size: 144705)
07:22
[9fa154fb] part of check-in [3c54cddf] Fix an assert() failure occuring in corrupt.test. (CVS 4034) (check-in: [3c54cddf] user: danielk1977 branch: trunk, size: 144579)
2007-05-10
21:31
[8f01a1ca] part of check-in [e91012b6] Backport the stack-size reduction patch in (3673) to version 3.3.13. (CVS 3979) (check-in: [e91012b6] user: drh branch: branch_3_3_13, size: 128759)
2007-05-09
20:35
[acfa86f5] part of check-in [c0dbac46] Fix a typo in a comment. Ticket #2348. (CVS 3966) (check-in: [c0dbac46] user: drh branch: trunk, size: 144372)
15:56
[42c77875] part of check-in [e8e879ac] Fix an obscure cache corruption that could occur after an SQLITE_FULL error. (CVS 3964) (check-in: [e8e879ac] user: danielk1977 branch: trunk, size: 144380)
2007-05-08
21:45
[8799ca42] part of check-in [c5754530] Remove compiler warnings in the amalgamation. (CVS 3960) (check-in: [c5754530] user: drh branch: trunk, size: 144340)
14:51
[c5b32e74] part of check-in [b1b74f06] Add the max_page_count pragma used to limit the maximum size of a database file. Untested. (CVS 3948) (check-in: [b1b74f06] user: drh branch: trunk, size: 144227)
2007-05-05
11:48
[9c9a9df7] part of check-in [16041116] Refactoring. Split btreeInt.h off from btree.c. Split malloc.c off from util.c. Expect much more to follow. (CVS 3925) (check-in: [16041116] user: drh branch: trunk, size: 143757)
2007-05-04
13:15
[f01e0e57] part of check-in [ba4845b3] Eliminate all uses of sprintf() and strcpy(). These were not being misused. But getting rid of them removes a library dependency. And it avoids warnings from the OpenBSD compiler. Ticket #2336. (CVS 3916) (check-in: [ba4845b3] user: drh branch: trunk, size: 143910)
12:01
[680e42a6] part of check-in [2d37687a] Fix a formatting errror in I/O logging. (CVS 3914) (check-in: [2d37687a] user: drh branch: trunk, size: 143861)
2007-05-03
17:18
[22bd6df4] part of check-in [8a43e167] Improvements to I/O tracing output. Require -DSQLITE_ENABLE_IOTRACE when compiling shell.c in order to link in the I/O tracing capability. (CVS 3909) (check-in: [8a43e167] user: drh branch: trunk, size: 143861)
2007-05-01
16:59
[23da15e1] part of check-in [e5e6af55] The pager takes the sector size to be the larger of the sector size reported by sqlite3OsSectorSize() and the page size. (CVS 3890) (check-in: [e5e6af55] user: drh branch: trunk, size: 143794)
2007-04-28
15:47
[48b1ebe8] part of check-in [89b1b3f8] Add some tests (and 2 resulting bug fixes) to incr vacuum mode. (CVS 3885) (check-in: [89b1b3f8] user: danielk1977 branch: trunk, size: 143504)
2007-04-26
12:11
[cd2770b0] part of check-in [d0745a43] In the pager, load the content of pages which were initialized with noContent==1 if they are subsequently requested with noContent==0. (CVS 3875) (check-in: [d0745a43] user: drh branch: trunk, size: 143445)
2007-04-16
15:02
[33c632ce] part of check-in [e44995de] Detect database file changes using a 128-bit segment of the file header that includes the change counter. Ticket #2303. (CVS 3844) (check-in: [e44995de] user: drh branch: trunk, size: 142834)
2007-04-13
04:01
[4fb7253e] part of check-in [e39efa19] Fix a bug in autovacuum introduced by (3839). (CVS 3841) (check-in: [e39efa19] user: drh branch: trunk, size: 142521)
02:14
[2a5df21f] part of check-in [32bb2d58] Fix multiple performance regressions (ticket #2298 among them) and add tests to make sure they do not come back. (CVS 3839) (check-in: [32bb2d58] user: drh branch: trunk, size: 142465)
2007-04-09
11:20
[655073dd] part of check-in [4e894133] Have the pager call xReiniter() instead of xDestructor() to restore btree level state after rolling back a page. (CVS 3828) (check-in: [4e894133] user: danielk1977 branch: trunk, size: 141560)
2007-04-07
15:03
[d0bd990a] part of check-in [0af764a0] For filesystem databases, do not store a list of pages in the statement journal in main memory. (CVS 3825) (check-in: [0af764a0] user: danielk1977 branch: trunk, size: 141608)
2007-04-06
18:23
[e1ee86ae] part of check-in [26b2e1ae] Additional coverage testing. (CVS 3823) (check-in: [26b2e1ae] user: drh branch: trunk, size: 141712)
2007-04-05
17:15
[642f804b] part of check-in [9dc4100e] Always truncate the pager cache when truncating the database file. Also reorganize the code to check the change-counter after first obtaining a shared lock. (CVS 3814) (check-in: [9dc4100e] user: danielk1977 branch: trunk, size: 141702)
14:29
[6c70842f] part of check-in [97c51598] Use the MEMDB macro instead of OMIT_MEMORYDB in pager_recycle(). (CVS 3813) (check-in: [97c51598] user: danielk1977 branch: trunk, size: 141546)
13:12
[82dca058] part of check-in [c20f7563] Avoid attempting to reclaim memory from in-memory databases in sqlite3_release_memory(). (CVS 3812) (check-in: [c20f7563] user: danielk1977 branch: trunk, size: 141531)
11:54
[52f22124] part of check-in [973b2a5f] Add some assert() statements to pager.c. (CVS 3811) (check-in: [973b2a5f] user: danielk1977 branch: trunk, size: 141446)
11:25
[c92f45c8] part of check-in [38af156d] Improvements to coverage testing. (CVS 3810) (check-in: [38af156d] user: drh branch: trunk, size: 141167)
08:40
[90c1b538] part of check-in [383a08e2] Catch an IO error case introduced by (3808). (CVS 3809) (check-in: [383a08e2] user: danielk1977 branch: trunk, size: 141244)
05:46
[1808ab8f] part of check-in [5180810e] Zero cached pages located beyond the end of the file before returning them. Ticket #2285. (CVS 3808) (check-in: [5180810e] user: danielk1977 branch: trunk, size: 141033)
2007-04-02
11:22
[30e4a54e] part of check-in [22e10cc2] If an IO error is encountered on a commit, close the journal so that it persists and can (hopefully) rollback the failed transaction later. (CVS 3792) (check-in: [22e10cc2] user: drh branch: trunk, size: 140634)
11:08
[0583079c] part of check-in [4d8c6bf4] Correctly handle the obscure case of a read-only hot-journal file. (CVS 3791) (check-in: [4d8c6bf4] user: danielk1977 branch: trunk, size: 141799)
05:07
[a73e3b06] part of check-in [ba0538a4] Fix a resource leak introduced by the change-counter optimisation. Also add some test coverage. (CVS 3790) (check-in: [ba0538a4] user: danielk1977 branch: trunk, size: 141479)
2007-04-01
23:49
[84072e9b] part of check-in [18aec1dd] Fix some warnings about unused and uninitialized variables. (CVS 3788) (check-in: [18aec1dd] user: drh branch: trunk, size: 139559)
2007-03-31
10:00
[5d07eba8] part of check-in [665b119a] More coverage for pager.c. (CVS 3778) (check-in: [665b119a] user: danielk1977 branch: trunk, size: 139577)
2007-03-30
20:43
[70de94d2] part of check-in [6dfd4a12] Remove vestiges of the SQLITE_PROTOCOL error. (CVS 3773) (check-in: [6dfd4a12] user: drh branch: trunk, size: 139313)
17:18
[15118c2b] part of check-in [f5fad52a] Remove asserts on the existing of journal files in pager - asserts that are not valid for certain kinds of simulated I/O errors or for async I/O. (CVS 3769) (check-in: [f5fad52a] user: drh branch: trunk, size: 139376)
16:01
[ae0b1e1a] part of check-in [04d3b909] Always enable exclusive access mode for TEMP databases. This cannot be changed. The locking_mode pragma has not effect on the TEMP database. (CVS 3766) (check-in: [04d3b909] user: drh branch: trunk, size: 139261)
14:46
[08e997b9] part of check-in [e5f17078] Tease apart the two phases of pager commit. (CVS 3763) (check-in: [e5f17078] user: drh branch: trunk, size: 138537)
14:06
[f9131543] part of check-in [66b3ad09] Refactoring the btree and pager routines into distinct two-phase commit routines. We've always done a two-phase commit - this change is just making that more apparent in the code. (CVS 3762) (check-in: [66b3ad09] user: drh branch: trunk, size: 138770)
2007-03-29
18:19
[b89ea0f5] part of check-in [0fb9af1d] Change the name of PAGER_SECTOR_SIZE to SQLITE_DEFAULT_SECTOR_SIZE. Make the new OS-layer interface routine for finding sector size optional. (CVS 3750) (check-in: [0fb9af1d] user: drh branch: trunk, size: 138359)
17:28
[9a6eefc1] part of check-in [e746832f] Avoid calling OsDelete() on journal files when they are opened for temporary databases. Fix for #2255. (CVS 3748) (check-in: [e746832f] user: danielk1977 branch: trunk, size: 138373)
2007-03-28
01:59
[1a881105] part of check-in [0f7fdb02] Fix an memory allocation error revealed by malloc3.test. (CVS 3733) (check-in: [0f7fdb02] user: drh branch: trunk, size: 137775)
2007-03-27
17:37
[444a49c2] part of check-in [e4452e8a] Remove a c++ comment in pager.c. (CVS 3730) (check-in: [e4452e8a] user: danielk1977 branch: trunk, size: 137562)
16:19
[2cc40af0] part of check-in [b24a6e7b] Test handling of IO errors that occur in OsDelete() or OsTruncate() operations. Also use an anonymous file for temporary storage during a VACUUM. (CVS 3729) (check-in: [b24a6e7b] user: danielk1977 branch: trunk, size: 137618)
13:36
[7a60e7e1] part of check-in [c8a8a189] More strict aliasing fixes. The single source file library now runs successfully with -fstrict-alias. (CVS 3725) (check-in: [c8a8a189] user: drh branch: trunk, size: 137010)
2007-03-26
22:05
[f40ac7af] part of check-in [0b832e21] Modify sources to that they can be combined into a single sqlite3.c source file. Eliminate all type-pruned pointer warnings. (CVS 3722) (check-in: [0b832e21] user: drh branch: trunk, size: 136991)
15:46
[d5fc7caf] part of check-in [e4209f71] Discard the pager-cache when the page-size is changed. (CVS 3719) (check-in: [e4209f71] user: danielk1977 branch: trunk, size: 136823)
13:48
[d9b188cb] part of check-in [ab53f508] Avoid unnecessary calls to pager_unwritelock() when in exclusive-access mode. Add the speed2.test script to the test suite. (CVS 3718) (check-in: [ab53f508] user: drh branch: trunk, size: 136771)
12:26
[75019bab] part of check-in [12745490] Run some malloc() tests with exclusive-access mode. (CVS 3717) (check-in: [12745490] user: danielk1977 branch: trunk, size: 136753)
10:27
[4c83ffbb] part of check-in [72cb2e1a] Add some tests and fixes surrounding exclusive-access mode and the pager change-counter. (CVS 3716) (check-in: [72cb2e1a] user: danielk1977 branch: trunk, size: 136455)
08:05
[5846d0c1] part of check-in [899e6070] Some fixes and test cases for exclusive access mode. (CVS 3714) (check-in: [899e6070] user: danielk1977 branch: trunk, size: 136382)
2007-03-24
16:45
[9023042d] part of check-in [b6c70037] Changes for exclusive access mode. There are still some bugs. (CVS 3712) (check-in: [b6c70037] user: danielk1977 branch: trunk, size: 135541)
2007-03-23
18:12
[da3c5e90] part of check-in [07b56965] Discard the contents of the pager-cache only when the change-counter indicates that it is stale. (CVS 3711) (check-in: [07b56965] user: danielk1977 branch: trunk, size: 134628)
2007-03-19
17:44
[dec2b258] part of check-in [7dc76588] Modify the interface to the pager sub-system in preparation for performing IO in blocks based on sector-size, not database page-size. (CVS 3705) (check-in: [7dc76588] user: danielk1977 branch: trunk, size: 132202)
13:53
[3688e882] part of check-in [9f62ef1e] Fix some problems with test cases in shared_err.test. Also a real bug causing a segfault after an IO error in pager.c. (CVS 3703) (check-in: [9f62ef1e] user: danielk1977 branch: trunk, size: 132432)
11:25
[c276e9de] part of check-in [3a3e8eb2] Changes to support medium sector sizes larger than the database page size. (CVS 3701) (check-in: [3a3e8eb2] user: danielk1977 branch: trunk, size: 132411)
05:54
[09792348] part of check-in [5752d84d] Add new OS file method to return the sector-size of the underlying storage: sqlite3OsSectorSize() (CVS 3700) (check-in: [5752d84d] user: danielk1977 branch: trunk, size: 129964)
2007-03-15
12:51
[ccca82d0] part of check-in [ea8507a7] Fix the pager so that it handles persistent I/O errors correctly. Update the testing infrastructure so that it tests for persistent I/O errors instead of just transient errors. (CVS 3690) (check-in: [ea8507a7] user: drh branch: trunk, size: 130001)
01:16
[999194d2] part of check-in [5af61402] Enhanced temp-file security under unix. There are no known attacks against prior versions - this check-in is just an added precaution. (CVS 3687) (check-in: [5af61402] user: drh branch: trunk, size: 129958)
2007-03-06
13:46
[680bf115] part of check-in [dfe1dffa] Use heap instead of stack for large buffers in the pager. Fix for #2262. (CVS 3673) (check-in: [dfe1dffa] user: danielk1977 branch: trunk, size: 130055)
2007-03-04
13:15
[c78d1cc1] part of check-in [2ba5be31] Changes to the btree and pager that reduce the amount of I/O when dealing with the freelist. (1) Avoid journaling pages of a table that is being deleted. (2) Do not read the original content of pages being pulled off of the freelist. (CVS 3671) (check-in: [2ba5be31] user: drh branch: trunk, size: 129669)
2007-03-01
00:29
[5d3a127c] part of check-in [ed915f57] Additional I/O Tracing support. (CVS 3667) (check-in: [ed915f57] user: drh branch: trunk, size: 129372)
2007-02-28
04:47
[e1ef884e] part of check-in [007ca283] Add the undocumented and experimental I/O tracing interface. This interface is likely to change and may be completely abandoned in the near future. (CVS 3665) (check-in: [007ca283] user: drh branch: trunk, size: 129326)
2007-01-05
02:00
[d6ad66eb] part of check-in [36a2db96] In the btree.c, when releasing the page1 lock, first make sure the pager has not reset and released the lock already. This fixes a bug introduced by (3549). (CVS 3563) (check-in: [36a2db96] user: drh branch: trunk, size: 128377)
2007-01-04
14:58
[48296c37] part of check-in [8cad5d67] Fix a memory leak introduced by the latest changes to pager.c. (CVS 3554) (check-in: [8cad5d67] user: drh branch: trunk, size: 128349)
2007-01-03
23:36
[28fdd84d] part of check-in [a593d574] Additional changes in the pager and os interface layers to fix problems that might be contributing to recently observed database corruption. (CVS 3549) (check-in: [a593d574] user: drh branch: trunk, size: 128326)
15:34
[4dbd6a12] part of check-in [6806b9ec] Make sure that the database size cache in the pager is invalidated whenever the database is unlocked. A stale value in the database size cache can result in database corruption on a heavily loaded system running autovacuum. (CVS 3548) (check-in: [6806b9ec] user: drh branch: trunk, size: 129100)
2007-01-02
18:41
[5a153277] part of check-in [bf1afd01] Update the vtab_err test to check for -DSQLITE_MEMDEBUG=1 and skip the tests if missing. Pager is more careful to clear its file size cache. Remove an assert() in VDBE that might fail on a corrupt database file. (CVS 3547) (check-in: [bf1afd01] user: drh branch: trunk, size: 128619)
2006-12-18
18:34
[814268d5] part of check-in [4dffc4c3] Speed improvement: do not journal or rollback pages that are pulled out of the freelist. (CVS 3531) (check-in: [4dffc4c3] user: drh branch: trunk, size: 128671)
2006-11-23
11:58
[18c9cb43] part of check-in [6221cf4f] Make the pager sector size configurable at compile-time. (CVS 3517) (check-in: [6221cf4f] user: drh branch: trunk, size: 128628)
2006-11-06
21:20
[3114c819] part of check-in [6324ea81] Use the difference between the SQLITE_IOERR_SHORT_READ and SQLITE_IOERR_READ returns from sqlite3OsRead() to make decisions about what to do with the error. (CVS 3503) (check-in: [6324ea81] user: drh branch: trunk, size: 128594)
2006-10-03
19:05
[a1293bb4] part of check-in [70501e4e] Report the error SQLITE_CORRUPT instead of SQLITE_IOERR if unable to rollback a hot journal that was damaged (for example) by filesystem corruption following a power failure. (CVS 3460) (check-in: [70501e4e] user: drh branch: trunk, size: 128840)
2006-09-15
12:29
[0f966f7f] part of check-in [78ae74db] Bug fix and better testing of the extended result codes. (CVS 3423) (check-in: [78ae74db] user: drh branch: trunk, size: 128662)
07:28
[65bb3314] part of check-in [ba579ddc] Add support for extended result codes - additional result information carried in the higher bits of the integer return codes. This must be enabled using the sqlite3_extended_result_code() API. Only a few extra result codes are currently defined. (CVS 3422) (check-in: [ba579ddc] user: drh branch: trunk, size: 128655)
2006-08-08
13:51
[e51c079b] part of check-in [76e4d418] Remove most static and global variables from a pure build. There are still a number of static and global variables used for testing. (CVS 3342) (check-in: [76e4d418] user: drh branch: trunk, size: 128621)
2006-06-28
18:18
[2ae998a6] part of check-in [60616496] Changes to get tests to pass with OMIT_VIRTUALTABLE. Ticket #1877. (CVS 3318) (check-in: [60616496] user: drh branch: trunk, size: 128447)
2006-06-15
14:31
[7ef4c509] part of check-in [fe3e70a7] Write database pages in sorted order to reduce file fragmentation. This is an experimental change. It is not clear if it will help any. It may well be removed in the future. (CVS 3255) (check-in: [fe3e70a7] user: drh branch: trunk, size: 128356)
2006-05-07
17:49
[ddd05666] part of check-in [ef8e9886] Automatically increase the size of the pager hash table as the number of in-memory pages increases. Tickets #1790 and #1799. (CVS 3180) (check-in: [ef8e9886] user: drh branch: trunk, size: 127072)
2006-05-03
23:34
[57348b21] part of check-in [8f820e43] Faster :memory: database COMMITs. Ticket #1790. (CVS 3178) (check-in: [8f820e43] user: drh branch: trunk, size: 126444)
2006-04-07
13:54
[ca711263] part of check-in [1929e37d] Reorder code so that it compiles with SQLITE_OMIT_MEMORYDB. Ticket #1754. (CVS 3170) (check-in: [1929e37d] user: drh branch: trunk, size: 125506)
2006-03-26
20:49
[33186636] part of check-in [fe0920c7] Work around a bug in GCC 4.0.2. (CVS 3154) (check-in: [fe0920c7] user: drh branch: trunk, size: 125544)
2006-03-23
23:29
[0b34f791] part of check-in [21446df6] Get autovacuum and in-memory databases working together. Ticket #1727. (CVS 3148) (check-in: [21446df6] user: drh branch: trunk, size: 125573)
2006-03-16
16:19
[0e5a3d1e] part of check-in [6c5175bc] Fix some compiler warnings. (CVS 3140) (check-in: [6c5175bc] user: drh branch: trunk, size: 125335)
2006-03-06
20:55
[7b1975e2] part of check-in [e510e6dd] Code changes resulting from Coverity analysis. http://scan.coverity.com/ Found 1 potential segfault in sqlite3_mprintf(). Also 2 failures to fclose() following a malloc() failure. And lots of cases where unnecessary conditionals could be removed from the code. (CVS 3126) (check-in: [e510e6dd] user: drh branch: trunk, size: 125330)
18:23
[dcc99661] part of check-in [9c265707] Pager performance enhancements. (CVS 3125) (check-in: [9c265707] user: drh branch: trunk, size: 125371)
2006-02-24
03:09
[f65d0b05] part of check-in [a359b181] Additional compiler warnings suppressed. (CVS 3111) (check-in: [a359b181] user: drh branch: trunk, size: 125667)
02:53
[bb2c0007] part of check-in [4b22e4b8] Remove unused parameters on internal APIs. Suppress warnings from CodeWarrior. (CVS 3110) (check-in: [4b22e4b8] user: drh branch: trunk, size: 125893)
2006-02-11
01:25
[c438aa5f] part of check-in [f2069d0b] Add support and documentation for the fullfsync pragma. Also include some other unrelated documentation updates. (CVS 3080) (check-in: [f2069d0b] user: drh branch: trunk, size: 125919)
2006-01-30
22:48
[b5b380ea] part of check-in [34dff874] Memory DB works with autovacuum. (CVS 3041) (check-in: [34dff874] user: drh branch: trunk, size: 125795)
2006-01-24
13:09
[c9fdc3f4] part of check-in [c30705a0] Return code was being dropped because of overridden variable in OP_IsUnique. Fix this and the test logic problem that hid it. (CVS 3025) (check-in: [c30705a0] user: danielk1977 branch: trunk, size: 125794)
12:09
[c4d18015] part of check-in [d86f18a4] Rename some variables to avoid hiding others. Also add "static" to two function signatures that were missing it. (CVS 3024) (check-in: [d86f18a4] user: danielk1977 branch: trunk, size: 125757)
2006-01-23
16:21
[b101634a] part of check-in [77969c67] Add "#ifndef NDEBUG" around sqlite3pager_iswriteable() (only used in assert() expressions). Also set the internal page number of a page to zero if it fails to initialise. (CVS 3005) (check-in: [77969c67] user: danielk1977 branch: trunk, size: 125742)
15:39
[d94bad3e] part of check-in [8c7e18c3] Fix a bug in pager.c that was overwriting freed memory. Comment changes in util.c. (CVS 3002) (check-in: [8c7e18c3] user: drh branch: trunk, size: 125687)
15:25
[86619d27] part of check-in [a9ec5ee4] Further coverage improvements for pager.c and another IO error bug fix. (CVS 3001) (check-in: [a9ec5ee4] user: danielk1977 branch: trunk, size: 125823)
13:47
[9c0ac753] part of check-in [0f6329ef] Do not automatically rollback at the btree or pager level if a commit fails. (CVS 2999) (check-in: [0f6329ef] user: danielk1977 branch: trunk, size: 125878)
13:09
[184a3045] part of check-in [6ec8e6b7] Improve coverage of pager.c and fix an IO error handling bug found in the process. (CVS 2995) (check-in: [6ec8e6b7] user: danielk1977 branch: trunk, size: 126193)
2006-01-21
12:08
[0f156593] part of check-in [29281dea] Fix more problems with malloc() and IO failures. (CVS 2985) (check-in: [29281dea] user: danielk1977 branch: trunk, size: 126387)
2006-01-20
18:10
[7e124928] part of check-in [507653a9] More compiler warnings fixed - or in some cases comments are added to explain that the compiler is wrong. (CVS 2984) (check-in: [507653a9] user: drh branch: trunk, size: 126314)
16:32
[39bf1957] part of check-in [7e34163a] Fix another couple of IO or malloc() failure problems in a shared-cache context. (CVS 2982) (check-in: [7e34163a] user: danielk1977 branch: trunk, size: 126258)
10:55
[49fab8c3] part of check-in [97491d4e] Handle some of the IO error conditions that may occur in a shared-cache context. (CVS 2980) (check-in: [97491d4e] user: danielk1977 branch: trunk, size: 126034)
2006-01-18
18:22
[ccdd0927] part of check-in [c7b9d50d] Include the ThreadData structure in internal malloc() testing. Also fixes for revealed bugs. (CVS 2974) (check-in: [c7b9d50d] user: danielk1977 branch: trunk, size: 125721)
17:25
[651fda17] part of check-in [e1ad9df1] Modify the sqlite3OsInMutex os-layer interface to take a single parameter to distinguish between mutexes held by the current thread and mutexes held by any thread. Part of the fix for ticket #1630. (CVS 2973) (check-in: [e1ad9df1] user: drh branch: trunk, size: 125693)
16:51
[099b2428] part of check-in [ac090f2a] Use a global variable protected by a mutex instead of thread-specific-data to record malloc() failures. (CVS 2972) (check-in: [ac090f2a] user: danielk1977 branch: trunk, size: 125700)
15:25
[62c0f6b4] part of check-in [e0b022e5] Change sqlite3MallocClearFailed() calls to sqlite3ApiExit(), a better API. (CVS 2970) (check-in: [e0b022e5] user: danielk1977 branch: trunk, size: 125720)
2006-01-16
15:32
[e84713f7] part of check-in [36b03259] Fix problems compiling with memory-management enabled. Ticket #1619. (CVS 2960) (check-in: [36b03259] user: danielk1977 branch: trunk, size: 124974)
15:14
[a8ba14f8] part of check-in [0d5d83bc] Fix some of the issues raised in #1615. (CVS 2959) (check-in: [0d5d83bc] user: danielk1977 branch: trunk, size: 125146)
12:46
[02a30687] part of check-in [99275229] Run the tests in shared.test a second time using an autovacuum database. (CVS 2957) (check-in: [99275229] user: danielk1977 branch: trunk, size: 125173)
11:29
[24d4b97c] part of check-in [7b488362] Clarify error handling in pager code. No functional changes. (CVS 2956) (check-in: [7b488362] user: danielk1977 branch: trunk, size: 124787)
2006-01-15
20:28
[12da1f38] part of check-in [c7da3aa9] Code size reductions in the pager. (CVS 2952) (check-in: [c7da3aa9] user: drh branch: trunk, size: 126262)
2006-01-11
21:41
[a96b9c43] part of check-in [5d9c6aa9] Automatically deallocate thread-specific data when it is no longer being used. Ticket #1601. Also implemented the suggestion of ticket #1603. Memory management is now off by default at compile-time. The sqlite3_enable_memory_management() API has been removed. (CVS 2919) (check-in: [5d9c6aa9] user: drh branch: trunk, size: 126197)
2006-01-10
20:32
[0a59a320] part of check-in [e6e6750c] Combine multiple small calls to sqlite3OsWrite into one larger call. (CVS 2910) (check-in: [e6e6750c] user: drh branch: trunk, size: 126087)
2006-01-09
23:40
[f84488fa] part of check-in [ec332d88] Added database server example code (untested). Fixed serveral bugs including the autovacuum compile problem described by ticket #1593. (CVS 2897) (check-in: [ec332d88] user: drh branch: trunk, size: 126007)
09:59
[6fbcc25f] part of check-in [44f8e313] Add a runtime interface to enable memory-management features. (CVS 2894) (check-in: [44f8e313] user: danielk1977 branch: trunk, size: 126146)
06:29
[f838695a] part of check-in [82b81f69] Rename DbSchema to "Schema" and SqliteTsd to "ThreadData". (CVS 2893) (check-in: [82b81f69] user: danielk1977 branch: trunk, size: 125928)
2006-01-06
14:32
[f06b85eb] part of check-in [2529c2e1] Change the OS interface layer to use traditional direct function call implementations instead of the more complicated virtual function table. Omit the asynchronous I/O demo. (CVS 2870) (check-in: [2529c2e1] user: drh branch: trunk, size: 125888)
2006-01-05
13:48
[07509ddb] part of check-in [6fdbb8b7] Disable automatic invocation of sqlite3_release_memory() when a malloc() fails in those cases where the global mutex is held. (CVS 2860) (check-in: [6fdbb8b7] user: danielk1977 branch: trunk, size: 125932)
2005-12-30
16:28
[681b4e39] part of check-in [2afcad99] Add part of the btree layer of the shared-cache feature. (CVS 2848) (check-in: [2afcad99] user: danielk1977 branch: trunk, size: 125520)
2005-12-20
09:19
[5227ea29] part of check-in [c2c52854] Add simple tests and fixes for sqlite3_soft_heap_limit() (CVS 2837) (check-in: [c2c52854] user: danielk1977 branch: trunk, size: 122884)
2005-12-19
17:37
[e44cb43e] part of check-in [3f5f358f] Backport the fix for ticket #1567 to version 2.8. (CVS 2832) (check-in: [3f5f358f] user: drh branch: version_2, size: 73393)
16:29
[b74ebe5a] part of check-in [33397742] Backport the fix for ticket #1567 into the 3.2 branch. (CVS 2829) (check-in: [33397742] user: drh branch: branch_3_2, size: 118819)
16:15
[f1969539] part of check-in [e6106cc1] Tentative fix for ticket #1567: disable the sqlite3pager_dont_write() optimization when a statement transaction is active. We continue to look for a better fix. (CVS 2827) (check-in: [e6106cc1] user: drh branch: trunk, size: 122804)
14:18
[154825d3] part of check-in [154282fc] Add some very simple test cases (and resulting bug fixes) for release_memory(). (CVS 2826) (check-in: [154282fc] user: danielk1977 branch: trunk, size: 122790)
2005-12-18
08:51
[d501a792] part of check-in [345addaa] Add the (untested) sqlite3_release_memory() function. (CVS 2825) (check-in: [345addaa] user: danielk1977 branch: trunk, size: 122669)
2005-12-09
20:02
[49f63a54] part of check-in [83a59151] Clean up annoying (and pointless) compiler warnings about differing signedness. (CVS 2810) (check-in: [83a59151] user: drh branch: trunk, size: 119561)
2005-12-06
12:52
[893cb210] part of check-in [e1606658] Some elements of the new malloc() failure handling. Not all cases work properly yet. Also, library is not threadsafe if malloc() fails right now. (CVS 2800) (check-in: [e1606658] user: danielk1977 branch: trunk, size: 119571)
2005-11-30
03:20
[bcb54653] part of check-in [bd8740d1] Restructure the OS interface yet again. This time make the OsFile object a virtual base class which is subclassed for unix, windows, and the crash test simulator. Add the new file "os.c" for common os layer code. Move all OS-specific routines into the sqlite3Os structure. (CVS 2795) (check-in: [bd8740d1] user: drh branch: trunk, size: 119151)
2005-11-29
03:13
[18cc5b27] part of check-in [058f3175] Make the OsFile structure opaque with its internal structure known only to the appropriate os_*.c implementation. Omit the os_unix.h and os_win.h include files. The crash tests are broken by this patch. (CVS 2791) (check-in: [058f3175] user: drh branch: trunk, size: 119307)
2005-11-26
03:51
[309d473c] part of check-in [008f676f] Remove some vestiges of the old OS_TEST driver. (CVS 2787) (check-in: [008f676f] user: drh branch: trunk, size: 119467)
03:43
[8231fb8d] part of check-in [57a674fc] Add an OS method for making copies of file descriptors. This fixes the crash tests. (CVS 2786) (check-in: [57a674fc] user: drh branch: trunk, size: 119682)
00:25
[561657a2] part of check-in [1f69aec2] Modify the OS layer so that I/O routines are called through a virtual function table. The os_test.c module has been replaced by test6.c. The crash tests are busted now and need to be fixed. (CVS 2785) (check-in: [1f69aec2] user: drh branch: trunk, size: 119659)
2005-11-05
15:11
[ca23cdff] part of check-in [6331860e] Work around a bug in MSVC++. Ticket #1513. (CVS 2763) (check-in: [6331860e] user: drh branch: trunk, size: 119404)
2005-11-04
22:03
[0d8dda8b] part of check-in [1b6bf418] VACUUM works even on an empty database. Ticket #1512. (CVS 2760) (check-in: [1b6bf418] user: drh branch: trunk, size: 119407)
2005-09-17
15:20
[adbb27f1] part of check-in [c0733000] Changes to make corruption errors easier to track down. (CVS 2709) (check-in: [c0733000] user: drh branch: trunk, size: 118793)
2005-09-16
17:16
[68b05954] part of check-in [5b6dc12b] Do not journal the locking page which doing an autovacuum. Similar to the problem of #1432 except that this one occurs on autovacuum instead of vacuum. An assert() has been added to catch any future incidents of this type. (CVS 2704) (check-in: [5b6dc12b] user: drh branch: trunk, size: 118823)
10:18
[96802068] part of check-in [35a88935] Prevent the sqlite3_pagecount() function from ever returning the pending-byte page. (CVS 2702) (check-in: [35a88935] user: danielk1977 branch: trunk, size: 118517)
2005-09-09
01:32
[2b48db1c] part of check-in [461e3a0a] Defend against disk I/O errors that happen during an sqlite3OsSeek(). (CVS 2679) (check-in: [461e3a0a] user: drh branch: trunk, size: 118213)
2005-09-08
12:38
[bf7e0df5] part of check-in [3c555a87] While doing a transaction comment, use fdatasync() instead of fsync() in cases there the file size is unchanged. (CVS 2673) (check-in: [3c555a87] user: drh branch: trunk, size: 117931)
2005-08-27
16:36
[cd989628] part of check-in [644b96aa] Disable synchronous writes to the master journal when PRAGMA synchronous=OFF for all database files. Ticket #1375. (CVS 2630) (check-in: [644b96aa] user: drh branch: trunk, size: 117907)
2005-08-21
16:54
[4c6c6a55] part of check-in [7f430268] Do not overwrite small files (less than 1024 bytes) that are not databases. Ticket #1370. (CVS 2606) (check-in: [7f430268] user: drh branch: trunk, size: 117706)
2005-07-09
02:16
[ee3bbc4c] part of check-in [af2a0ba4] Make sure there is only one busy counter. Ticket #1315. (CVS 2543) (check-in: [af2a0ba4] user: drh branch: trunk, size: 117645)
2005-06-07
02:12
[841a2cdd] part of check-in [914d6e65] Add tests to make sure statement journals are only opened when necessary. (CVS 2500) (check-in: [914d6e65] user: drh branch: trunk, size: 117735)
2005-05-22
20:30
[f86d79d3] part of check-in [2db2b32f] The cache_size pragma should not reset the synchronous pragma. Ticket #1260. (CVS 2474) (check-in: [2db2b32f] user: drh branch: trunk, size: 117457)
2005-05-21
02:48
[c91b599f] part of check-in [6b6e525b] More structure rearrangements for additional size reductions. Ticket #1253. (CVS 2468) (check-in: [6b6e525b] user: drh branch: trunk, size: 117999)
2005-05-20
20:11
[a17fe884] part of check-in [27025613] Reorder structure fields to reduce code footprint. Ticket #1253. Need to do more of this. (CVS 2467) (check-in: [27025613] user: drh branch: trunk, size: 117732)
20:01
[d16a1499] part of check-in [f29a1d88] Do not allow the pagesize of :memory: databases to be changed. Silently ignore PRAGMA page_size=N requests for :memory: databases. Ticket #1144 and #1252. (CVS 2466) (check-in: [f29a1d88] user: drh branch: trunk, size: 117732)
2005-04-28
17:18
[a48f537d] part of check-in [6863703a] Enhancements to allow for extensions. (CVS 2448) (check-in: [6863703a] user: drh branch: trunk, size: 117795)
2005-03-28
18:04
[95e24c91] part of check-in [4ca11ca0] Fix another memory leak in the pager. (CVS 2425) (check-in: [4ca11ca0] user: drh branch: trunk, size: 117735)
08:44
[221076cd] part of check-in [0fd5ce4e] Modifications to reduce memory consumption. (CVS 2422) (check-in: [0fd5ce4e] user: danielk1977 branch: trunk, size: 117637)
03:39
[4c1322dc] part of check-in [bcb5d72e] Fix some memory leaks that occur after a malloc failure. (CVS 2421) (check-in: [bcb5d72e] user: drh branch: trunk, size: 117384)
2005-03-21
04:04
[d6ba3096] part of check-in [1f9d10d7] Add function to recover from a malloc() failure. (CVS 2414) (check-in: [1f9d10d7] user: danielk1977 branch: trunk, size: 117374)
03:53
[f12044be] part of check-in [e7844a01] Assorted fixes to the handling of various malloc() failures. (CVS 2413) (check-in: [e7844a01] user: danielk1977 branch: trunk, size: 116758)
2005-03-20
22:47
[e5000ca9] part of check-in [0471d6b8] More changes for ticket #1171 after additional analysis. (CVS 2403) (check-in: [0471d6b8] user: drh branch: trunk, size: 116371)
19:10
[bac21a13] part of check-in [f0a39cee] Tentative fix for ticket #1171. More research and testing needed. (CVS 2402) (check-in: [f0a39cee] user: drh branch: trunk, size: 115451)
2005-03-15
17:09
[26a642c1] part of check-in [856e2ec9] When creating a new database, delete any preexisting journal that might be left over from a prior database with the same name. Ticket #1152. (CVS 2387) (check-in: [856e2ec9] user: drh branch: trunk, size: 115349)
2005-03-14
02:01
[2e795b3d] part of check-in [644c6398] Be more aggressive about using the busy handler. Ticket #1159. (CVS 2385) (check-in: [644c6398] user: drh branch: trunk, size: 114831)
2005-03-10
14:11
[a789b0ff] part of check-in [58b8733b] Disable F_FULLSYNC if the sychronous pragma is not set to FULL. (CVS 2372) (check-in: [58b8733b] user: drh branch: trunk, size: 114991)
2005-03-09
13:09
[b728c90b] part of check-in [64c4c717] Fix a file corruption bug in CREATE INDEX in auto-vacuum databases. (CVS 2368) (check-in: [64c4c717] user: danielk1977 branch: trunk, size: 114906)
2005-02-15
03:38
[83502876] part of check-in [dcbc9833] Ensure a database file is not truncated without an exclusive lock. Fix for ticket #1114. (CVS 2332) (check-in: [dcbc9833] user: danielk1977 branch: trunk, size: 114831)
02:54
[69efe972] part of check-in [8514a4fe] Check that read-only pages are not being modified (disabled by default). (CVS 2331) (check-in: [8514a4fe] user: danielk1977 branch: trunk, size: 114624)
2005-02-06
02:45
[d0c1f41b] part of check-in [2155448d] Add the (highly experimental) omit_readlock pragma that disables the use of readlocks on read-only databases that are connected using ATTACH. (CVS 2317) (check-in: [2155448d] user: drh branch: trunk, size: 113278)
2005-01-29
08:32
[d21565d0] part of check-in [b1b50f31] Modify sub-query handling. Tickets #1083 and #1084. (CVS 2286) (check-in: [b1b50f31] user: danielk1977 branch: trunk, size: 113043)
2005-01-22
03:39
[886a1ae4] part of check-in [764b55ad] Test script changes: Bug fix and cleanup on ioerr tests. Also, don't use TCL "file copy" command on windows. (CVS 2264) (check-in: [764b55ad] user: danielk1977 branch: trunk, size: 112557)
2005-01-21
08:13
[49ee879e] part of check-in [c6fc49e6] Exclude a few more lines of code using OMIT macros. (CVS 2253) (check-in: [c6fc49e6] user: danielk1977 branch: trunk, size: 112610)
2005-01-20
11:32
[05d23abb] part of check-in [5b1a9bf6] Extend the influence of a couple of SQLITE_OMIT_** macros a little bit. (CVS 2243) (check-in: [5b1a9bf6] user: danielk1977 branch: trunk, size: 112502)
2005-01-17
01:33
[6319578f] part of check-in [feb49d10] Have sqlite3pager_get() return SQLITE_CORRUPT for a page number greater than 2^31. (CVS 2222) (check-in: [feb49d10] user: danielk1977 branch: trunk, size: 112400)
2005-01-13
11:07
[4b37f741] part of check-in [0428a148] Test cases to improve coverage of pager.c. (CVS 2205) (check-in: [0428a148] user: danielk1977 branch: trunk, size: 112131)
2005-01-11
10:25
[c6b29d55] part of check-in [8ced4915] Test cases to improve coverage of btree.c (and minor bugfixes). (CVS 2190) (check-in: [8ced4915] user: danielk1977 branch: trunk, size: 112310)
2005-01-08
12:42
[4a14410a] part of check-in [fb3bf68d] Fix a problem with auto-vacuum databases and the VACUUM command. Also add "pages read" and "pages written" statistics to the pager layer. (CVS 2183) (check-in: [fb3bf68d] user: danielk1977 branch: trunk, size: 112148)
2004-11-24
01:16
[7b4dc9a9] part of check-in [0ad4ed87] Fix a memory leak in pager.c. (CVS 2151) (check-in: [0ad4ed87] user: drh branch: trunk, size: 111963)
2004-11-23
09:06
[2907f0b0] part of check-in [557be3ff] Fix a bug involving balance_shallow() and the sqlite_master table. (CVS 2143) (check-in: [557be3ff] user: danielk1977 branch: trunk, size: 111904)
2004-11-10
15:27
[ee88fcec] part of check-in [0747b558] Ensure the test suite can run with either SQLITE_OMIT_AUTOVACUUM or SQLITE_DEFAULT_AUTOVACUUM=1 defined. (CVS 2087) (check-in: [0747b558] user: danielk1977 branch: trunk, size: 111651)
2004-11-08
09:26
[2653787b] part of check-in [839ad771] Test auto-vacuum mode for crash-proofness. Also fix a bug related to the same. (CVS 2077) (check-in: [839ad771] user: danielk1977 branch: trunk, size: 111590)
07:13
[942cbb9d] part of check-in [d6335698] Auto-vacuum: Account for the page reserved for windows locking (PENDING_BYTE). (CVS 2076) (check-in: [d6335698] user: danielk1977 branch: trunk, size: 110756)
2004-11-06
12:26
[0523c8a1] part of check-in [081676e4] Auto-vacuum: Ensure pages to be removed by database truncation are in the journal file. Also fix an sqlite3pager_movepage() bug. (CVS 2074) (check-in: [081676e4] user: danielk1977 branch: trunk, size: 110028)
2004-11-05
16:37
[868c67e4] part of check-in [cfee7f4a] Do not truncate a database file until after fsync() has been called on the journal. (CVS 2068) (check-in: [cfee7f4a] user: danielk1977 branch: trunk, size: 109218)
2004-11-04
14:30
[a43e2a39] part of check-in [1da361fa] Support root-page allocation/deallocation in auto-vacuum databases. Still a few problems. (CVS 2054) (check-in: [1da361fa] user: danielk1977 branch: trunk, size: 108912)
2004-11-03
08:44
[9ce238f9] part of check-in [719c1b79] Auto-vacuum bug: Correctly manipulate page cache hash-table entries in sqlite3pager_movepage(). (CVS 2046) (check-in: [719c1b79] user: danielk1977 branch: trunk, size: 108712)
2004-11-02
12:56
[6b00c0d5] part of check-in [d12481f0] Code to auto-vacuum the database if all root pages happen to be in the right place. Not active by default and largely untested. (CVS 2037) (check-in: [d12481f0] user: danielk1977 branch: trunk, size: 108474)
2004-10-31
02:22
[6e19f9a6] part of check-in [be661acf] Insert #ifdefs that can optionally remove features at compiletime resulting in a database engine with a smaller footprint. (CVS 2034) (check-in: [be661acf] user: drh branch: trunk, size: 105751)
2004-10-22
16:22
[cc2e7fb3] part of check-in [0539c2d2] Fix alignment problems in btree and pager and allow page sizes that are not a multiple of 8. (CVS 2026) (check-in: [0539c2d2] user: drh branch: trunk, size: 105555)
2004-10-05
02:41
[dc0ffab9] part of check-in [81ff8107] Add support for DEFERRED, IMMEDIATE, and EXCLUSIVE transactions. (CVS 2000) (check-in: [81ff8107] user: drh branch: trunk, size: 105163)
2004-10-02
20:38
[d3688828] part of check-in [c4697503] Fixes to the OsUnlock() interface. Correctly leave a SHARED lock behind when requested. Honor the error code that OsUnlock() returns. Ticket #913 and #938. (CVS 1997) (check-in: [c4697503] user: drh branch: trunk, size: 104231)
2004-10-01
02:00
[39e0ad16] part of check-in [8972c004] Use type i64 instead of off_t for file offsets since off_t is giving portability problems. Ticket #924. (CVS 1992) (check-in: [8972c004] user: drh branch: trunk, size: 104231)
2004-09-24
22:32
[705a6111] part of check-in [eabc77c9] Optimizations to vdbeaux.c and printf.c (CVS 1980) (check-in: [eabc77c9] user: drh branch: trunk, size: 104316)
2004-09-08
20:13
[db8f6cb8] part of check-in [39755d21] More changes directed at getting things to work on 64-bit platforms. (CVS 1949) (check-in: [39755d21] user: drh branch: trunk, size: 104316)
2004-09-02
14:57
[ae06c85d] part of check-in [d1b29156] Transactions commit on the last sqlite3_step(), not on sqlite3_finalize(). This allows the sqlite3_step() to return SQLITE_BUSY if the commit is blocked by a lock. Ticket #885. (CVS 1928) (check-in: [d1b29156] user: drh branch: trunk, size: 104310)
2004-08-30
16:52
[616563dc] part of check-in [8f5b199e] Better detection and handling of corrupt database files. (CVS 1922) (check-in: [8f5b199e] user: drh branch: trunk, size: 104364)
2004-08-21
19:20
[6ecf2460] part of check-in [b6eb4bf8] Fix a pager bug that might have made multi-database commits non-atomic if a power failure occurred at just the wrong moment. (CVS 1900) (check-in: [b6eb4bf8] user: drh branch: trunk, size: 104324)
2004-08-19
13:29
[2698653a] part of check-in [25fe7a42] Add the SQLITE_BUSY_RESERVED_LOCK compile-time option. (CVS 1894) (check-in: [25fe7a42] user: drh branch: trunk, size: 104300)
2004-08-18
19:09
[f42404ba] part of check-in [6afe467d] Make sure the database file is correctly truncated after a ROLLBACK that occurs after a statement abort. (CVS 1893) (check-in: [6afe467d] user: drh branch: trunk, size: 104267)
16:05
[6f36dae7] part of check-in [1cc0323f] Better debug logging of the pager. (CVS 1892) (check-in: [1cc0323f] user: drh branch: trunk, size: 104062)
15:58
[4581ffaf] part of check-in [6b2b6b2d] Be more agressive about not creating or opening the TEMP database if there are no TEMP tables. (CVS 1891) (check-in: [6b2b6b2d] user: drh branch: trunk, size: 104094)
02:10
[4e3bbc44] part of check-in [5914a11c] Avoid creating a TEMP database unless it is absolutely necessary. (CVS 1890) (check-in: [5914a11c] user: drh branch: trunk, size: 104003)
2004-08-07
23:54
[37b21590] part of check-in [d33771a3] Do not invoke the busy callback when trying to promote a lock from SHARED to RESERVED. This avoids a deadlock. (CVS 1879) (check-in: [d33771a3] user: drh branch: trunk, size: 104027)
2004-07-22
15:02
[e0865a9a] part of check-in [b0a3becd] Fix bugs associated with the codec. (CVS 1846) (check-in: [b0a3becd] user: drh branch: trunk, size: 103501)
01:19
[1354e8f8] part of check-in [4cf6e9db] Initial implementation of variable page sizes and the temp_store pragma. (CVS 1843) (check-in: [4cf6e9db] user: drh branch: trunk, size: 103486)
2004-07-20
12:45
[53a310a7] part of check-in [522ff721] Add the '%ifdef' capability to lemon. Other minor changes. (CVS 1836) (check-in: [522ff721] user: drh branch: trunk, size: 102683)
2004-07-19
22:08
[3fb0fa47] part of check-in [511ee639] The OsFile under Unix records a pointer back to the pager. This is intended to be used for an externalized locking patch. (CVS 1821) (check-in: [511ee639] user: drh branch: trunk, size: 102664)
2004-06-30
11:54
[5f8cdc92] part of check-in [a98dd004] Coverage improvements for malloc and vdbemem.c (CVS 1781) (check-in: [a98dd004] user: danielk1977 branch: trunk, size: 102642)
09:49
[7f30e724] part of check-in [152e9940] Coverage tests for vacuum.c (CVS 1776) (check-in: [152e9940] user: danielk1977 branch: trunk, size: 102622)
2004-06-28
04:52
[c1d5212e] part of check-in [06e8e30b] Fix some problems with multi-file transaction rollback. (CVS 1751) (check-in: [06e8e30b] user: danielk1977 branch: trunk, size: 102635)
01:16
[1156c264] part of check-in [81e49940] A few more warning fixes. (CVS 1750) (check-in: [81e49940] user: danielk1977 branch: trunk, size: 102350)
2004-06-26
13:51
[6240557a] part of check-in [3c8512bc] Fix a problem where a file was not being closed after a malloc() failure. (CVS 1741) (check-in: [3c8512bc] user: danielk1977 branch: trunk, size: 102343)
08:38
[d9f34d92] part of check-in [4e207209] Remove the 'nMaster' argument from various pager and btree functions. (CVS 1737) (check-in: [4e207209] user: danielk1977 branch: trunk, size: 102318)
01:48
[e3969171] part of check-in [02bd3acd] Fix a bug in the new full-sync journal format. (CVS 1733) (check-in: [02bd3acd] user: danielk1977 branch: trunk, size: 102338)
2004-06-25
11:11
[e4c7e844] part of check-in [4905e749] Add a checksum to the master journal name stored at the end of a journal file. (CVS 1692) (check-in: [4905e749] user: danielk1977 branch: trunk, size: 101862)
08:32
[65e1b2ed] part of check-in [b68b4a42] A few more comment changes. No code alterations. (CVS 1689) (check-in: [b68b4a42] user: danielk1977 branch: trunk, size: 100944)
07:21
[706e810f] part of check-in [084f3fff] Add a comment on the implementation of sqlite3OsLock(). No code changes. (CVS 1688) (check-in: [084f3fff] user: danielk1977 branch: trunk, size: 100392)
06:23
[6e3539f1] part of check-in [197d00d6] Activate test cases for new journal format. (CVS 1687) (check-in: [197d00d6] user: danielk1977 branch: trunk, size: 100392)
02:38
[e25c880b] part of check-in [504246a1] Modifications to the journal format to make it more robust. (CVS 1686) (check-in: [504246a1] user: danielk1977 branch: trunk, size: 100348)
2004-06-23
10:43
[ec34fbae] part of check-in [41868d79] Test cases to verify recovery after a crash. (CVS 1675) (check-in: [41868d79] user: danielk1977 branch: trunk, size: 92515)
01:05
[42297421] part of check-in [46107da7] Handle corrupt journal file headers correctly. (CVS 1674) (check-in: [46107da7] user: danielk1977 branch: trunk, size: 92525)
2004-06-22
12:18
[5fac95a8] part of check-in [ecdb93d3] Improve the os_test.c module. (CVS 1657) (check-in: [ecdb93d3] user: danielk1977 branch: trunk, size: 92680)
11:29
[d9d3f577] part of check-in [d16b8638] Add os_test.c. Not activated yet. (CVS 1655) (check-in: [d16b8638] user: danielk1977 branch: trunk, size: 92679)
2004-06-21
18:14
[f42526a1] part of check-in [afc398c2] Fix an uninitialized variable. The variable was harmless, but pedantic error checking in MSVC raised an exception on it. (CVS 1651) (check-in: [afc398c2] user: drh branch: trunk, size: 92610)
2004-06-18
23:21
[d627c5e4] part of check-in [5f383c1e] MinGW/MSYS build fixes; ticket #765 (CVS 1625) (check-in: [5f383c1e] user: dougcurrie branch: trunk, size: 92655)
2004-06-16
12:00
[45309941] part of check-in [6001c5e1] Trivial modifications to prevent compiler warnings. (CVS 1606) (check-in: [6001c5e1] user: danielk1977 branch: trunk, size: 92626)
10:39
[72b5ab4f] part of check-in [b739ef2a] Fix handling of a failed malloc() in various places (CVS 1605) (check-in: [b739ef2a] user: danielk1977 branch: trunk, size: 92608)
07:45
[48356cb4] part of check-in [98b48704] Fix two more memory leaks. (CVS 1603) (check-in: [98b48704] user: danielk1977 branch: trunk, size: 92433)
2004-06-15
11:40
[8e26112d] part of check-in [e21a1813] Minor bugfixes and test case adjustments for version 2 test cases to work with version 3. (CVS 1598) (check-in: [e21a1813] user: danielk1977 branch: trunk, size: 91742)
01:40
[bf81f3c8] part of check-in [5a814202] Do not use the page containing locks for anything to avoid problems with the manditory file locking on windows. (CVS 1595) (check-in: [5a814202] user: drh branch: trunk, size: 91557)
2004-06-14
06:03
[d42af374] part of check-in [73cd0aab] Ensure the master journal directory is synced. Also, change the master journal format to store journal file names. (CVS 1583) (check-in: [73cd0aab] user: danielk1977 branch: trunk, size: 91387)
05:10
[feb44bd0] part of check-in [4649abcb] Update the file change counter just before each transaction is committed. (CVS 1582) (check-in: [4649abcb] user: danielk1977 branch: trunk, size: 91224)
2004-06-12
01:43
[4a2d3c87] part of check-in [4f1cfca5] Change prototype for busy callbacks to "int xBusy(void *, int);" (CVS 1573) (check-in: [4f1cfca5] user: danielk1977 branch: trunk, size: 89610)
2004-06-10
23:35
[94ecf938] part of check-in [0e420f72] Comment changes in pager.c. (CVS 1567) (check-in: [0e420f72] user: drh branch: trunk, size: 89614)
05:59
[d8527309] part of check-in [71e98d0d] Misc fixes for test cases failing due to the new locking model. (CVS 1561) (check-in: [71e98d0d] user: danielk1977 branch: trunk, size: 88030)
04:32
[778379c0] part of check-in [adb2bd61] When in PAGER_RESERVED state, don't write to the main file when rolling back a statement transaction. (CVS 1560) (check-in: [adb2bd61] user: danielk1977 branch: trunk, size: 87758)
02:16
[88a7160c] part of check-in [b8aaa3a2] Change the collation sequence interface to allow collation sequences that use UTF-16 in non-native byte order to be registered. (CVS 1559) (check-in: [b8aaa3a2] user: danielk1977 branch: trunk, size: 87374)
01:30
[70a372bd] part of check-in [28c3cc08] Add the vdbe_listing and sql_trace pragmas used for debugging. (CVS 1558) (check-in: [28c3cc08] user: drh branch: trunk, size: 87366)
00:51
[d1202ce0] part of check-in [3b78ffe0] Fix a buffer overrun in the atomic multifile commit logic of the pager. (CVS 1556) (check-in: [3b78ffe0] user: drh branch: trunk, size: 87354)
2004-06-09
20:03
[f93d104b] part of check-in [3674b25e] Turn on the atomic multifile commit logic. It does not work right yet, but it has at least stopped failing asserts. (CVS 1550) (check-in: [3674b25e] user: drh branch: trunk, size: 87362)
19:03
[5c37b973] part of check-in [a12bef4a] Remove legacy journal formats. (CVS 1549) (check-in: [a12bef4a] user: drh branch: trunk, size: 87313)
17:37
[ee2e2fa7] part of check-in [dc076345] Fixes to the file locking. 109 tests are now failing. (CVS 1548) (check-in: [dc076345] user: drh branch: trunk, size: 91718)
14:17
[c483bef2] part of check-in [0ecbba78] Add the "lock_status" pragma - only available when SQLITE_DEBUG is defined. Used for testing only. (CVS 1547) (check-in: [0ecbba78] user: drh branch: trunk, size: 90260)
2004-06-07
16:27
[3fddd1e5] part of check-in [0c2d169c] More work on windows locking. Fix some problems with unix locking. There is still an assertion failure on windows locking in attach2.test. (CVS 1539) (check-in: [0c2d169c] user: drh branch: trunk, size: 89982)
2004-06-04
10:38
[944f6b07] part of check-in [d2f69e5e] Defer the exclusive db lock until the pager cache is flushed to disk. 41 tests now fail. (CVS 1528) (check-in: [d2f69e5e] user: danielk1977 branch: trunk, size: 89904)
06:22
[00fabe42] part of check-in [ff70b6d2] Move the 'busy-callback' logic to the pager layer. (CVS 1527) (check-in: [ff70b6d2] user: danielk1977 branch: trunk, size: 88388)
2004-06-03
16:08
[1619b6a0] part of check-in [d57e5252] Untested updates to support atomic multi-file transactions (CVS 1526) (check-in: [d57e5252] user: danielk1977 branch: trunk, size: 87581)
2004-05-31
08:26
[048872f1] part of check-in [b8ed812c] Replace OP_Begin, OP_Commit and OP_Rollback with OP_AutoCommit. (CVS 1500) (check-in: [b8ed812c] user: danielk1977 branch: trunk, size: 79712)
2004-05-14
01:58
[6ff6b906] part of check-in [f63fb6dd] Changes to btree and pager in preparation for moving to run-time page size determination. (CVS 1374) (check-in: [f63fb6dd] user: drh branch: trunk, size: 79709)
2004-05-12
13:30
[fa60e566] part of check-in [97de9f7c] The pager now handles file ":memory:" complete in memory with no disk I/O. (CVS 1363) (check-in: [97de9f7c] user: drh branch: trunk, size: 79648)
2004-05-10
10:34
[43556f37] part of check-in [2242423e] Change the names of external symbols from sqlite_XXX to sqlite3_XXX. (CVS 1338) (check-in: [2242423e] user: danielk1977 branch: trunk, size: 73962)
2004-05-08
20:07
[350f5cd1] part of check-in [e9f84ff3] More btree.c bug fixes. (CVS 1327) (check-in: [e9f84ff3] user: drh branch: trunk, size: 73952)
08:23
[97a675f1] part of check-in [8af6474c] Change lots of internal symbols from sqliteXXX to sqlite3XXX so that the library links again. It doesn't work yet, due to changes in the btree layer calling convention. (CVS 1324) (check-in: [8af6474c] user: danielk1977 branch: trunk, size: 73552)
2004-05-07
17:57
[d18d5624] part of check-in [d394b2b2] The btree.c module compiles and links and passes some tests. Many tests still fail, though. (CVS 1321) (check-in: [d394b2b2] user: drh branch: trunk, size: 73472)
2004-04-26
14:10
[2e3af839] part of check-in [910067a2] Pager tests working. (CVS 1308) (check-in: [910067a2] user: drh branch: trunk, size: 73440)
2004-02-25
02:20
[b246986e] part of check-in [2773c1d3] Disable an assert which (as it turns out) is not always true. Ticket #615. (CVS 1269) (check-in: [2773c1d3] user: drh branch: trunk, size: 73367)
2004-02-11
09:46
[29ddad4d] part of check-in [f2bdccf4] Refactor the interface to the randomness generator. (CVS 1224) (check-in: [f2bdccf4] user: drh branch: trunk, size: 73153)
02:18
[8b4803d3] part of check-in [5200e9ed] Pass all (relevant) regression tests when using the codec. (CVS 1223) (check-in: [5200e9ed] user: drh branch: trunk, size: 73135)
2004-02-10
23:51
[3678afeb] part of check-in [be5122e9] Adjustments to the codec in the pager. (CVS 1222) (check-in: [be5122e9] user: drh branch: trunk, size: 73005)
01:54
[cde4fd5a] part of check-in [4c7bf714] Allow SQLITE_PAGE_SIZE to be redefined on the compiler command-line. (CVS 1217) (check-in: [4c7bf714] user: drh branch: trunk, size: 73005)
2004-02-09
01:20
[71d17c23] part of check-in [2f0c122c] Add an optional codec to the pager layer. (CVS 1214) (check-in: [2f0c122c] user: drh branch: trunk, size: 73371)
2004-02-08
18:07
[7258db4f] part of check-in [93ccd1b1] Perpare for the 2.8.12 release. (CVS 1212) (check-in: [93ccd1b1] user: drh branch: trunk, size: 71996)
06:05
[f2be6a1f] part of check-in [48832d35] Fix inaccuracies and add details to comments in the pager. Change the name of one function to make its purpose clearer. Ticket #599. (CVS 1209) (check-in: [48832d35] user: drh branch: trunk, size: 71287)
00:40
[7872537f] part of check-in [dc5be2c8] Preliminary fix for ticket #599. More testing and analysis needed. (CVS 1208) (check-in: [dc5be2c8] user: drh branch: trunk, size: 67988)
2004-01-07
02:52
[289328d8] part of check-in [4146f8cc] Add a typecast to work around a bug in the Metrowerks Code Warrior compiler. Ticket #553. (CVS 1161) (check-in: [4146f8cc] user: drh branch: trunk, size: 67474)
2003-12-17
23:57
[ca24fced] part of check-in [da00efb1] Make sure the pagers in-memory cache states in sync with the disk file. Ticket #529. (CVS 1133) (check-in: [da00efb1] user: drh branch: trunk, size: 67468)
2003-09-06
01:10
[62702dff] part of check-in [912f47c7] The beginnings of changes to support pre-compiled SQL. Mostly untested, though all regression tests to pass. (CVS 1093) (check-in: [912f47c7] user: drh branch: trunk, size: 67810)
2003-08-26
11:41
[77e1a7de] part of check-in [c95f347c] Fix compiler warnings under OpenVMS. Ticket #357. (CVS 1088) (check-in: [c95f347c] user: drh branch: trunk, size: 67627)
11:25
[48abfc7d] part of check-in [da53369f] If the database filename is an empty string, open a temporary file to hold the database. Ticket #432. (CVS 1085) (check-in: [da53369f] user: drh branch: trunk, size: 67618)
2003-07-27
18:59
[a4fd3a61] part of check-in [09c10fe3] When creating a new journal file, open a (read-only) file descriptor on the directory containing the journal and sync that directory once to make sure that the journal filename entry gets into the directory. Ticket #410. (CVS 1066) (check-in: [09c10fe3] user: drh branch: trunk, size: 67602)
2003-07-07
10:47
[9512e789] part of check-in [a49ee69e] A proported fix for ticket #374. (CVS 1047) (check-in: [a49ee69e] user: drh branch: trunk, size: 67186)
2003-06-14
11:42
[6c50e8dc] part of check-in [66ac7aea] Open the journal file for read-only when doing a playback. Ticket #351. (CVS 1019) (check-in: [66ac7aea] user: drh branch: trunk, size: 67186)
2003-06-04
16:24
[c4d007fc] part of check-in [af6f2bdf] Fix a bug in UPDATE OR REPLACE that was introduced by check-in (999). Also clean up some compiler warnings for VC++. (CVS 1005) (check-in: [af6f2bdf] user: drh branch: trunk, size: 67134)
2003-04-25
15:37
[51fdfda6] part of check-in [8d3e8793] Add tests to insure VACUUM works in the presence of I/O errors. Fix some problems that came to light by these tests. (CVS 935) (check-in: [8d3e8793] user: drh branch: trunk, size: 67114)
13:22
[18066f50] part of check-in [caa96028] Make VACUUM work even if multiple processes have the database open at once. (CVS 933) (check-in: [caa96028] user: drh branch: trunk, size: 66881)
2003-04-06
20:52
[df4c8135] part of check-in [b123c165] Move the implementation of VACUUM into a separate source file. (CVS 901) (check-in: [b123c165] user: drh branch: trunk, size: 67210)
20:44
[53abd9df] part of check-in [185d8dc8] Simplify the BTree interface by shortening names. Added two new methods for accessing the current filename and for changing the name of the database file. (CVS 900) (check-in: [185d8dc8] user: drh branch: trunk, size: 67202)
2003-03-19
03:14
[dd1dfa4d] part of check-in [875da9ee] Modifications to the VDBE to support more than one database file. (CVS 878) (check-in: [875da9ee] user: drh branch: trunk, size: 66162)
2003-02-16
19:13
[47509f6b] part of check-in [d10adc1c] Fix more bugs. The new rollback journal implementation now passes all regression tests under Linux. (CVS 867) (check-in: [d10adc1c] user: drh branch: trunk, size: 65746)
2003-02-15
23:09
[bffccf85] part of check-in [3ef0ad8a] Fix the pager so that correct rollbacks occur when synchronous is turned off. This check-in also included unrelated documentation updates. (CVS 866) (check-in: [3ef0ad8a] user: drh branch: trunk, size: 65739)
2003-02-13
01:58
[a64f6921] part of check-in [7c22aa3f] Fix a bug in the rollback logic for the new journal format. (CVS 864) (check-in: [7c22aa3f] user: drh branch: trunk, size: 65741)
2003-02-12
14:09
[f7658e5d] part of check-in [792a9e15] Added the new FULL option to the SYNCHRONOUS pragma. Still need to test it. (CVS 863) (check-in: [792a9e15] user: drh branch: trunk, size: 66692)
02:10
[1748a01e] part of check-in [6c927dd3] Fix a bug in the legacy journal format writing logic. (CVS 862) (check-in: [6c927dd3] user: drh branch: trunk, size: 65516)
2003-02-11
14:55
[4adf3cc6] part of check-in [8ec56325] Modify the journal format to be more robust against garbage that might appear in the file after a power failure. The changes are mostly working but more testing is still required. This check-in is to checkpoint the changes so far. (CVS 861) (check-in: [8ec56325] user: drh branch: trunk, size: 65419)
2003-01-29
22:58
[7ca152bb] part of check-in [af1e9299] Additional testing and bug fixing with the non-callback API. Updated the C/C++ interface document to describe the non-callback API. (CVS 855) (check-in: [af1e9299] user: drh branch: trunk, size: 59296)
2003-01-25
15:43
[95f5c5c7] part of check-in [b6ea0da7] Fix a bug in the rollback validation logic (code that only runs during debugging). The problem was introduced by check-in (835). (CVS 849) (check-in: [b6ea0da7] user: drh branch: trunk, size: 58585)
2003-01-22
01:26
[82148bde] part of check-in [19221dee] Minor refinements to the pager. (CVS 844) (check-in: [19221dee] user: drh branch: trunk, size: 58511)
2003-01-21
02:39
[f35799e6] part of check-in [00f08fc0] In the pager, cache a pointer to the first page on the freelist that does not need to be synced. This makes a fetch of a page that is not in cache go a lot faster when the cache is full. This check-in also adds some performance instrumentation to the OS layer. (CVS 842) (check-in: [00f08fc0] user: drh branch: trunk, size: 57545)
2003-01-16
13:42
[08115562] part of check-in [717523d3] Improvements to the pager to help large updates against a large database run faster. Also improved the testing of the pager rollback algorithms. (CVS 835) (check-in: [717523d3] user: drh branch: trunk, size: 56745)
2003-01-12
18:02
[5b81639b] part of check-in [52d5007f] Initial check-in of the code for the new sqlite_set_authorizer() API function. The code is mostly untested at this point. (CVS 827) (check-in: [52d5007f] user: drh branch: trunk, size: 53737)
2003-01-11
13:30
[6874ea29] part of check-in [86deb12d] Remove the ColumnCount opcode, which had become a no-op. (CVS 821) (check-in: [86deb12d] user: drh branch: trunk, size: 53684)
2003-01-07
14:46
[20ea9300] part of check-in [2f89e9e6] Avoid calling truncate() and stat() on the checkpoint journal to improve the speed of a large number of UPDATEs within a transaction. (CVS 819) (check-in: [2f89e9e6] user: drh branch: trunk, size: 53718)
2003-01-03
02:04
[e7d05fa2] part of check-in [1ba41bc2] Allow the rollback journal to be empty except for its header. Ticket #212. (CVS 809) (check-in: [1ba41bc2] user: drh branch: trunk, size: 53661)
2003-01-02
14:43
[255c5d14] part of check-in [db745e87] Code optimizations to help the library run faster. (CVS 808) (check-in: [db745e87] user: drh branch: trunk, size: 53662)
2002-12-28
01:06
[ebc73e7c] part of check-in [f3dc686e] Fix an uninitialized variable in the pager. Tickets #208 and #206. Bug introduced by check-in (795). (CVS 804) (check-in: [f3dc686e] user: drh branch: trunk, size: 53623)
2002-12-07
21:45
[0cbbde8b] part of check-in [1c58b4fc] Save the full pathname of the database file so that journalling still works even if the user changes working directories after opening the databae. Ticket #200. (CVS 798) (check-in: [1c58b4fc] user: drh branch: trunk, size: 53619)
2002-12-02
04:25
[76a6e5a1] part of check-in [fa5c0425] Change to the pager to avoid opening journal files unnecessarily. This can sometimes results in a significant speed improvement. (CVS 791) (check-in: [fa5c0425] user: drh branch: trunk, size: 53324)
2002-12-01
02:00
[1ef5be14] part of check-in [9864a126] Fixed large file support under Linux. I'm unable to test under Windows. Ticket #191. (CVS 790) (check-in: [9864a126] user: drh branch: trunk, size: 51604)
2002-11-11
01:04
[691571c4] part of check-in [745d6639] Back out the changes in the pager that sorted pages prior to writing them to the database. Additional measurements showed no performance gains. (CVS 785) (check-in: [745d6639] user: drh branch: trunk, size: 51576)
2002-11-10
23:32
[27d9b946] part of check-in [a6ef6657] Two optimizations to the pager: (1) Write dirty pages back to the database file in order and (2) Keep a separate list of in-memory pages that are in the checkpoint journal in order to speed a checkpoint commit. (CVS 783) (check-in: [a6ef6657] user: drh branch: trunk, size: 53444)
2002-11-09
00:33
[292853d0] part of check-in [a29d60ec] Try to better detect when the library is compiled for large file support (LFS) but the support is not available in the host OS kernel. (CVS 782) (check-in: [a29d60ec] user: drh branch: trunk, size: 49555)
2002-11-06
14:08
[7d581b20] part of check-in [2008b56f] Add large file support to Windows. Change large file support for Unix so that it compiles automatically - without requiring special options on the compiler command line. (CVS 781) (check-in: [2008b56f] user: drh branch: trunk, size: 49485)
2002-11-05
23:03
[baf50d83] part of check-in [a3f67fe9] Add support for databases larger than 2GB under Unix. Must be compiled with -D_FILE_OFFSET_BITS=64 and -D_LARGEFILE_SOURCE in order to work with larger databases. (CVS 778) (check-in: [a3f67fe9] user: drh branch: trunk, size: 49428)
2002-09-05
19:10
[592e5931] part of check-in [f4288520] Rewind the checkpoint journal after each statement to avoid allowing the file to become too large. (CVS 744) (check-in: [f4288520] user: drh branch: trunk, size: 49315)
16:08
[b5365348] part of check-in [f5c26547] Fix for ticket #146: Correctly handle reads of unused disk blocks at the end of the file. (CVS 743) (check-in: [f5c26547] user: drh branch: trunk, size: 49279)
2002-08-13
00:01
[4b0169e9] part of check-in [34c4149e] Updates prior to release 2.6.3. (CVS 706) (check-in: [34c4149e] user: drh branch: trunk, size: 49025)
2002-08-12
12:29
[ca54e21c] part of check-in [2fb3fdcd] Fix for ticket #9 (again). The rollback journal files should now also be byte-order independent. (CVS 705) (check-in: [2fb3fdcd] user: drh branch: trunk, size: 49023)
2002-07-07
16:52
[b8415b02] part of check-in [f6e24d5c] More rollback problems: Fix two more errors introduced by checking (410) that can cause database corruption after a ROLLBACK. Also add new tests to make sure everything is working this time. (CVS 663) (check-in: [f6e24d5c] user: drh branch: trunk, size: 46804)
2002-07-06
16:28
[10334160] part of check-in [db178646] Fix for bug #94: Be sure to journal pages that are added to the freelist then removed from the freelist and reused during the same transaction. (CVS 660) (check-in: [db178646] user: drh branch: trunk, size: 46083)
2002-06-25
14:43
[58ae9f56] part of check-in [36fc0add] Bug fix: When the database file grows in size during a transaction, make sure the last page of the file gets written to disk even if that page is on the free list and contains no data. Otherwise the disk file will be too small which can lead to database corruption in subsequent transactions. (CVS 643) (check-in: [36fc0add] user: drh branch: trunk, size: 45018)
2002-05-30
12:27
[1e41053c] part of check-in [7a24336d] Once it is opened, leave the checkpoint journal file open for the duration of a transaction, rather than closing it and reopening it for each statement. (Ticket #53) (CVS 599) (check-in: [7a24336d] user: drh branch: trunk, size: 44414)
2002-04-18
01:56
[ba574010] part of check-in [33da20b9] Fix for ticket #19: Do not call sqliteOsSync() if the only changes were changes to TEMP tables. (CVS 530) (check-in: [33da20b9] user: drh branch: trunk, size: 44097)
2002-03-06
22:01
[f136f5ba] part of check-in [161c0c5f] Added the default_cache_size and default_synchronous pragmas. Added additional tests for pragmas. Added a new speedtest script. (CVS 421) (check-in: [161c0c5f] user: drh branch: trunk, size: 43653)
2002-03-05
12:41
[e1419353] part of check-in [480eef1a] Change the pager locking mechanism so that we don't have to write page 1 to the journal and to the database unless it actually changes. (CVS 419) (check-in: [480eef1a] user: drh branch: trunk, size: 43277)
01:11
[41af8790] part of check-in [414da4af] Add the ability to turn of calls to fsync() using the "synchronous" pragma. Increased the default cache size from 100 to 2000 and made the "cache_size" pragma persistent. (CVS 418) (check-in: [414da4af] user: drh branch: trunk, size: 42296)
2002-03-02
20:41
[0aa358a3] part of check-in [cf1ebcfb] Pager optimization: do not write or journal free pages. This results in a 2x performance gain for large INSERTs and a 5x performance gain for large DELETEs. (CVS 410) (check-in: [cf1ebcfb] user: drh branch: trunk, size: 42153)
2002-02-19
13:39
[9761c79c] part of check-in [c6e9048e] Change the name of the sanity_check PRAGMA to "integrity_check" and make it available on all compiles. (CVS 381) (check-in: [c6e9048e] user: drh branch: trunk, size: 40444)
2002-02-14
12:50
[d261a3a0] part of check-in [08a68e09] Fix an incorrect assert() in pager.c. (CVS 369) (check-in: [08a68e09] user: drh branch: trunk, size: 40432)
2002-02-02
18:49
[4059bda9] part of check-in [9be4d4c6] Get the ABORT conflict resolution algorithm working. (CVS 362) (check-in: [9be4d4c6] user: drh branch: trunk, size: 40395)
15:01
[f7274d47] part of check-in [aaa53e11] Checkpoint code added to the pager. Regression tests work but the new APIs have not been tested yet. (CVS 361) (check-in: [aaa53e11] user: drh branch: trunk, size: 41111)
2002-01-14
09:28
[1e80a3ba] part of check-in [f3038d21] Fix warning messages in VC++. Patches from nicolas352001. (CVS 347) (check-in: [f3038d21] user: drh branch: trunk, size: 35302)
2002-01-06
17:07
[ad8a3574] part of check-in [9b0be4fc] Comment updates most. Also some small changes to the VDBE. (CVS 339) (check-in: [9b0be4fc] user: drh branch: trunk, size: 35282)
2001-12-15
14:22
[dde0eb5b] part of check-in [e8595579] Comment and documentation changes. (CVS 331) (check-in: [e8595579] user: drh branch: trunk, size: 35280)
2001-12-14
15:09
[f39d99e9] part of check-in [b0d21887] Fix a race condition in the locking code that would sometimes cause SQLITE_PROTOCOL or SQLITE_CORRUPT to be returned when SQLITE_BUSY should have been returned. (CVS 326) (check-in: [b0d21887] user: drh branch: trunk, size: 34960)
2001-12-05
00:21
[16173a7b] part of check-in [585ed5eb] Bug fix: sqlite_exec() would sometimes return SQLITE_PROTOCOL when it should have returned SQLITE_BUSY. There was also a deadlock that the previous bug was masking. (CVS 322) (check-in: [585ed5eb] user: drh branch: trunk, size: 35853)
2001-11-22
00:01
[fd9fc866] part of check-in [a9db1c12] Fix a bug in the locking protocol. (CVS 315) (check-in: [a9db1c12] user: drh branch: trunk, size: 35667)
2001-11-10
13:51
[442ea25d] part of check-in [2d2ad264] Comment changes (CVS 308) (check-in: [2d2ad264] user: drh branch: trunk, size: 35617)
2001-10-22
02:58
[0bd0b4b6] part of check-in [f8328a5f] More changes for 2.0.7. (CVS 293) (check-in: [f8328a5f] user: drh branch: trunk, size: 35614)
2001-10-18
12:34
[5e287767] part of check-in [22948fc6] Support for UTF-8 and ISO8859 characters in identifiers. Bug fix in the column name generator for selects (was coreing). (CVS 290) (check-in: [22948fc6] user: drh branch: trunk, size: 35382)
2001-10-12
17:30
[e2e189a1] part of check-in [0a7848b6] Fix an assertion failure when the disk fills up. Add tests for a full disk situation. (CVS 285) (check-in: [0a7848b6] user: drh branch: trunk, size: 35383)
2001-10-08
13:22
[3445bd7c] part of check-in [9368c62e] Support for temporary tables added. Still need more testing. (CVS 279) (check-in: [9368c62e] user: drh branch: trunk, size: 35037)
2001-10-06
16:33
[592c16b0] part of check-in [b63b3f36] Adding table column query capability to support ODBC. (CVS 278) (check-in: [b63b3f36] user: drh branch: trunk, size: 34827)
2001-09-20
01:44
[0fe02b63] part of check-in [d2a1aac4] 2.0-Alpha-2 release (CVS 258) (check-in: [d2a1aac4] user: drh branch: trunk, size: 34660)
2001-09-19
13:58
[a77c7fd3] part of check-in [82db5456] Add the OpenReadOnly() OS method to fix a bug in the pager. (CVS 257) (check-in: [82db5456] user: drh branch: trunk, size: 34662)
13:22
[28c8a641] part of check-in [abff526d] Trying to get the OS abstraction layer to work. (CVS 256) (check-in: [abff526d] user: drh branch: trunk, size: 34684)
2001-09-18
02:02
[c7db91e4] part of check-in [8f28a83a] Bug fixes. Trying to make it go faster. (CVS 254) (check-in: [8f28a83a] user: drh branch: trunk, size: 36894)
2001-09-16
00:13
[3871a5d3] part of check-in [4e926efe] Disclaimed copyright. Preparing for release 2.0. (CVS 250) (check-in: [4e926efe] user: drh branch: trunk, size: 36890)
2001-09-15
00:57
[048c20ac] part of check-in [14474fa1] Everything is working on Linux. This is release 2.0-Alpha-1. (CVS 246) (check-in: [14474fa1] user: drh branch: trunk, size: 37153)
2001-09-14
18:54
[bb0891d4] part of check-in [5e372460] Added a PRAGMA statement. Took out the special comment parsing. (CVS 245) (check-in: [5e372460] user: drh branch: trunk, size: 36218)
16:42
[fc0d51b7] part of check-in [7da856cd] Bug fixes and speed improvements. Delete is still slow. (CVS 244) (check-in: [7da856cd] user: drh branch: trunk, size: 35742)
03:24
[4f9e2b39] part of check-in [e7b65e37] All tests now pass. But there are still issues. For example, inserts are way too slow. And additional tests are needed for new features. (CVS 243) (check-in: [e7b65e37] user: drh branch: trunk, size: 35798)
2001-09-13
14:46
[05a2177c] part of check-in [a0a1e701] The BTree changes are now integrated and the whole thing compiles and links. I have not yet tried to run it, though. (CVS 239) (check-in: [a0a1e701] user: drh branch: trunk, size: 35777)
13:46
[1928e68b] part of check-in [6ecc8b20] The code is in place to replace GDBM with BTree. But I have not yet attempted to compile it. I am sure the code contains bugs. (CVS 238) (check-in: [6ecc8b20] user: drh branch: trunk, size: 35761)
2001-07-02
17:51
[fbb1f1d8] part of check-in [a84fb078] BTree and pager are working pretty well now. (CVS 234) (check-in: [a84fb078] user: drh branch: trunk, size: 34139)
2001-06-28
01:54
[3e864a3e] part of check-in [9cfeeb58] Got a lot of BTree tests working. Still lots more needed. (CVS 230) (check-in: [9cfeeb58] user: drh branch: trunk, size: 32811)
2001-06-24
20:39
[866d4d9a] part of check-in [85f015c9] The first test file for BTree added. Simple insert and delete tests pass. There is still a lot of work to be done, though. (CVS 228) (check-in: [85f015c9] user: drh branch: trunk, size: 31989)
2001-06-23
11:36
[d5cb53ac] part of check-in [f4df6664] Fix a bug in pager.c introduced in the previous delta. (CVS 227) (check-in: [f4df6664] user: drh branch: trunk, size: 31962)
2001-06-22
19:15
[30c6f10a] part of check-in [b31c4902] The BTree code compiles and links now, but it does not work yet. (CVS 226) (check-in: [b31c4902] user: drh branch: trunk, size: 31815)
2001-06-02
02:40
[5224dc4b] part of check-in [d07e0e80] continued work on btree (CVS 222) (check-in: [d07e0e80] user: drh branch: trunk, size: 31765)
2001-05-24
21:06
[debcf7b0] part of check-in [18500cdc] Continued work on btree (CVS 219) (check-in: [18500cdc] user: drh branch: trunk, size: 31631)
2001-05-21
13:45
[e45946aa] part of check-in [523d52df] :-) (CVS 218) (check-in: [523d52df] user: drh branch: trunk, size: 31095)
2001-04-28
16:52
[4081e3e9] part of check-in [73a1ed61] :-) (CVS 214) (check-in: [73a1ed61] user: drh branch: trunk, size: 30209)
2001-04-15
02:27
[cc49d7e2] part of check-in [1f07abe4] Working on the pager (CVS 212) (check-in: [1f07abe4] user: drh branch: trunk, size: 28134)
00:37
[52dc932c] part of check-in [f82fa707] Pager is working, mostly. (CVS 211) (check-in: [f82fa707] user: drh branch: trunk, size: 28097)
2001-04-14
16:38
[67227909] part of check-in [42c2f3fe] Getting ready to redo the journal file format. (CVS 210) (check-in: [42c2f3fe] user: drh branch: trunk, size: 22947)
2001-04-11
14:29
Added: [0aa36ee4] part of check-in [555351dd] :-) (CVS 208) (check-in: [555351dd] user: drh branch: trunk, size: 21344)