In the async-IO module, do not increment the open file-counter until after an "open file" event has been added to the event queue. Otherwise, an OOM may cause the system to increment the counter even though no file was successfully opened.
check-in: 15a190dc user: dan tags: trunk

Reformat WAL code for clearer presentation. Update comments for correctness.
Add checks to ensure that corruption in shared-memory does not result in
an infinite loop.
check-in: 40eaada7 user: drh tags: trunk

Change the journal_mode pragma to remove the "default journal mode" concept.
The journal_mode pragma only effects currently attached databases and does
not change the behavior of future attachments.
check-in: e396184c user: drh tags: trunk

Make sure the schema is loaded before preparing a "PRAGMA journal_mode" command. This helps it return meaningful results when it is the first command executed by a new database connection.
check-in: ef126e77 user: dan tags: trunk

Modify the VFS xAccess() method on winNT so that it returns false for
an exists test of a zero-length file. This makes the windows VFS work
the same as the unix VFS.
check-in: ec35f254 user: drh tags: trunk

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 tags: trunk

Add any files specified as part of the QUICKTEST_INCLUDE environment variable to the set of test files run as part of "make test". Release testing uses this trick.
check-in: a40a6e7d user: dan tags: trunk

Add initializers for the xShmXXX() members to an sqlite3_io_methods structure in journal.c. This doesn't fix any real problem, just prevents a compiler warning.
check-in: dafb3577 user: dan tags: trunk

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 tags: trunk