aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Initial code for incremental checkpoint in WAL mode. This check-in compilesdrh2010-05-30
| | | | | | | 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. FossilOrigin-Name: ef3ba7a17ff90674d702e5694b9e792851ab6998
* Make sure the wal-index mapping is always large enough to cover the entiredrh2010-05-26
| | | | | active area of the wal-index. FossilOrigin-Name: 42705babba0e9d2ef078845854bebbd168f23366
* Change the semantics of xShmGet() such that it will never increase the sizedrh2010-05-26
| | | | | | of shared memory. xShmSize() must be used to grow the size of shared memory. A shared memory segment size cannot be shrunk (except by dropping it). FossilOrigin-Name: 72de00731245277b2209103ec0a76e3d4f56530e
* Updated header comments in wal.c. No functional code changes.drh2010-05-25
| | | FossilOrigin-Name: 687632a6b3a0aeb006c1eda5c27d5489f08c230e
* Update header comments in wal.c to correctly describe the WAL file format.drh2010-05-25
| | | | | | Update the locking region offsets in os_unix.c and os_win.c and add assert() statement to verify that the locking region offsets are correct. FossilOrigin-Name: 40030c0739f821ea8ee188c28c579507f10448bc
* If a writer exits unexpectedly in the middle of a transaction, have the ↵dan2010-05-25
| | | | | following writer remove any wal-index hash-table entries left by the interrupted transaction. FossilOrigin-Name: ed77556adcdf7011b95b9969b360269fb2ebe4e5
* Remove unreachable code associated with WAL from the pager.drh2010-05-25
| | | FossilOrigin-Name: 54c1718e6d15a20414cae15895eb5e83217722e2
* OOM errors during an auto-checkpoint are benign.drh2010-05-24
| | | FossilOrigin-Name: 3d252ce5d0d843e4e65beed672598e65c5745129
* Change the checksum used in WAL files so that each frames checksum depends ↵dan2010-05-24
| | | | | 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. FossilOrigin-Name: 8a53f12c83a107684b99f4a9de371b5ea3ca810a
* Make sure a WAL frame of all zeros is detected as an invalid frame.drh2010-05-24
| | | FossilOrigin-Name: 02d99ad4b51065c67cc7689916130774be1c4c87
* Fix up test_osinst.c to work with SQLITE_OMIT_VIRTUALTABLE.drh2010-05-24
| | | FossilOrigin-Name: 51fd38152b92db637d1d346fca35ec2d3e4d4f57
* Change the WAL file format to support two kinds of checksums - one that is ↵dan2010-05-24
| | | | | fast to calculate on little-endian architectures and another that is fast on big-endian architectures. A flag in the wal-header indicates which the file uses. FossilOrigin-Name: 65ba804dd1d31d1eef6ae3f40a3ade344a410b84
* Add a couple of missing methods to test_osinst.c..dan2010-05-22
| | | FossilOrigin-Name: 5c9e9c06ae350043e66f36087da4021a52e6ee17
* Add several EXPENSIVE_ASSERT code blocks to validate the wal-index hash table.drh2010-05-22
| | | | | | Fix the bugs that these code blocks fine. Rename walClearHash() to walCleanupHash() and simplify its interface. FossilOrigin-Name: 7aade899e55f4565f02d301e1e83fb0bac2ea500
* Fix another bug in walClearHash().dan2010-05-21
| | | FossilOrigin-Name: 40f80ffe70ca691dfa146f6d84956ed0784fc63d
* Comment out the SQLITE_FCNTL_SIZE_HINT from os_unix.c since it does not drh2010-05-21
| | | | | seem to provide any performance gain there. FossilOrigin-Name: 7d01309da658d6b658c1b2e53bbdc5112fb0a4d9
* Correct an off-by-one bug in the previous commit.dan2010-05-21
| | | FossilOrigin-Name: 75a1130d86faf18e73cb46cda5d029f1e913e4e6
* Remove entries from wal-index hash tables when a rollback or savepoint ↵dan2010-05-21
| | | | | rollback occurs. FossilOrigin-Name: 36795c2b23a78978528cace193e386138adacd41
* Fix the wal-index header read routine so that it correctly detects a zerodrh2010-05-21
| | | | | header as being malformed and in need of a wal-index rebuild. FossilOrigin-Name: 1a4eb3a3efe86c7caff4d9a5894953bce378f841
* Add a new xShmBarrier method to the VFS - a shared-memory fence operation.drh2010-05-20
| | | | | | Implement the same in both unix and win32. Use it to make the WAL subsystem more robust. FossilOrigin-Name: 1bd011c9fed5ef29fb616b4d0a52df3b82221b1f
* Make use of the extra information in the WAL header and frame header todrh2010-05-20
| | | | | enhance robustness. FossilOrigin-Name: 9580ecb7e3beb1949a71784a3dcd1823a88e4a9d
* Convert the wal-header and frame-header to 24 bytes. Extra information indrh2010-05-20
| | | | | | | both headers is designed to enhance robustness after crashes, though the extra information is currently unused. This is a snapshot of a work in progress. FossilOrigin-Name: 669706431f186f92fdc0856a6206419a1e843f46
* Merge WIN32 WAL support into trunk. Still some issues with locking to resolve.shaneh2010-05-19
|\ | | | | FossilOrigin-Name: 43377663fc3569c361867cdea19e8abaf91a163f
| * Pull in all the latest changes from the trunk.drh2010-05-14
| |\ | | | | | | | | | | | | Update the win32 SHM methods to work with the new interface design. FossilOrigin-Name: 4b69f2cd315b6b66d10e5190d235114788853258
| * | Updates to WAL support in os_win.c: pulled in latest changes from ↵shaneh2010-05-12
| | | | | | | | | | | | | | | src/os_unix.c; updated tracing; misc. improvements. FossilOrigin-Name: 76504726a1ef7f6a0445ec800776462138b22d72
| * | Initial port of WAL VFS support from os_unix.c to os_win.c.shaneh2010-05-11
| | | | | | | | | FossilOrigin-Name: 111ad59f21d53d1ec63c084ca5f98f2aaf7cd070
* | | Add the SQLITE_FCNTL_SIZE_HINT to the os_win.c VFS.drh2010-05-19
| | | | | | | | | FossilOrigin-Name: 9894118d20c08951565c2096552d4a3d2413f7b0
* | | Add the SQLITE_FCNTL_SIZE_HINT operator to sqlite3_file_control() and use itdrh2010-05-19
| | | | | | | | | | | | | | | | | | to give the VFS hints about the ultimate size of a database file when the file is growing. FossilOrigin-Name: 2b7e3b4a30d6a7c4a8a4b8e7dd2ed728b565c96d
* | | Fix a bug in the new checkpoint computation. Also update the checkpointdrh2010-05-19
| | | | | | | | | | | | | | | algorithm in the test scripts to align with the new implementation. FossilOrigin-Name: 8b6056f2ee596f31b157a792fac05d11f7cb63bb
* | | Revise the checksumming algorithm in wal.c. More variable refactoring.drh2010-05-19
| | | | | | | | | FossilOrigin-Name: 542b90eba6440a0bccef329788fd17a2d3fbeee6
* | | Refactoring some variable names in wal.c.drh2010-05-19
| | | | | | | | | FossilOrigin-Name: 1d201ff51f7c5ecdf71a91ed25204b7130894282
* | | Add a large comment to wal.c describing the WAL and wal-index file formats.drh2010-05-19
| | | | | | | | | FossilOrigin-Name: a71a22b52f4570e934063553a81b39268127dc44
* | | Update the wal-index hash format so that hash-table space is reused followingdrh2010-05-18
| | | | | | | | | | | | | | | | | | a rollback, thus preventing hash table overflows. Add assert()s to verify that hash tables do not overfill. Further refactoring of the wal-index code. FossilOrigin-Name: ada9a8c7b69c5dd2d66bbf62b61181651e6d2142
* | | Refactoring of the WalIterator implementation.drh2010-05-18
| | | | | | | | | FossilOrigin-Name: b5b60fdcc5dcf41f2c79912075ac241f7ce220d6
* | | Mark the shared-memory in the WAL implementation as volatile.drh2010-05-18
| | | | | | | | | FossilOrigin-Name: 0a6787908e989bd5e6af25acbdc59ebc8fa61d6d
* | | Comment clarifications in wal.c.drh2010-05-18
| | | | | | | | | FossilOrigin-Name: a029be10172e2e6a2ef4e3eb2ea1bd0ca85b16ed
* | | Remove an unreachable test from wal.c.drh2010-05-17
| | | | | | | | | FossilOrigin-Name: 7162c45673d1068d1fda55a70207a3cd77575502
* | | Add a note to the documentation of sqlite3_wal_hook() to say not to return ↵dan2010-05-15
| | | | | | | | | | | | | | | SQLITE_ROW or SQLITE_DONE. Or any other value that is not a valid SQLite error code. FossilOrigin-Name: 2f0b6cbf7b4fa31242ff4f6163226c22ae4f8c9b
* | | Silently ignore errors trying to set the default journal_mode while doingdrh2010-05-15
| | | | | | | | | | | | | | | an ATTACH. FossilOrigin-Name: b9af4ad2efadfb2fb9e338dc081a6231f1536700
* | | Fix a typo that (by bad luck) was not a syntax error but which caused some drh2010-05-14
| | | | | | | | | | | | | | | important lines of code to be skipped when SQLITE_DEBUG was not used. FossilOrigin-Name: 9ef99d97d25aae81df971d40ad10c544b8f30053
* | | Make sure the value of an INTEGER PRIMARY KEY column supplied to triggersdrh2010-05-14
| |/ |/| | | | | | | | | and especially to FK constraints really contains the ROWID and not the NULL that is stored in the column itself. Ticket [dd08e5a988d00dec]. FossilOrigin-Name: 636f86095eb1f4bdcfb0c9ed846c4c6b3589c10b
* | Simplifications to the SHM implementation in os_unix.c, taking advantagedrh2010-05-14
| | | | | | | | | | of the removal of the LinuxThreads mess. FossilOrigin-Name: d1debe5def82a6bc72f11b8787176ac60259630f
* | Simplify os_unix.c by removing support for LinuxThreads. Linux systems mustdrh2010-05-14
| | | | | | | | | | either use NPTL or else not share database connections across threads. FossilOrigin-Name: e294b696ba91512b1ca5547774c51ea07b4cb5bc
* | Change the OSTRACEn() macro to OSTRACE(()). Also rename some internal fieldsdrh2010-05-14
| | | | | | | | | | and variables in os_unix.c to be more meaningful and searchable. FossilOrigin-Name: 5fe529f239cddbf4b7ea57abb02d95cc0d94f5f5
* | Fix test_osinst.c so that it does not depend on gettimeofday() unless ↵dan2010-05-14
| | | | | | | | | | SQLITE_OS_UNIX is defined and NO_GETTOD is not defined. FossilOrigin-Name: 2a4014b79b852d8b62b4941495b826f154308d86
* | Add xShmXXX methods to test_osinst.c.dan2010-05-14
| | | | | | FossilOrigin-Name: b8a9b37a3c8d1005a16185c1fc4c414ca11d736a
* | Make debugging elements of the sqlite3_mutex object volatile and make themdrh2010-05-13
| | | | | | | | | | only appear when compiling with SQLITE_DEBUG. Ticket [51914f6acd2cb462]. FossilOrigin-Name: e823c60ca4c3d515b8b12dada4631fe8f44975e9
* | Allow sqlite3WalCheckpoint() to be called even if the WAL is in thedrh2010-05-13
| | | | | | | | | | SQLITE_SHM_READ state, as sometimes happens after an error. FossilOrigin-Name: 175b296f9b9680f605537f52a8a53944deaa5391
* | Remerge mistaken test_osinst.c changes.dan2010-05-13
|\ \ | | | | | | FossilOrigin-Name: e8c10d3cf601cc81a620f6c0ba5f195945a3f725
| * | Fix mistake in test_osinst.c.dan2010-05-13
| | | | | | | | | FossilOrigin-Name: 4c3e137803f86ec5a6c68bfaa29a2847ba48fd65