/ Check-in [b78e58ae]
Login

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

Overview
Comment: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.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b78e58ae1570ab4d66a69db445a752c6456038a0
User & Date: drh 2010-03-19 15:48:14
Original Comment: Do 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.
References
2010-06-17
13:22 Ticket [fc62af45] Executing "PRAGMA journal_mode" may delete journal file while it is in use. status still Open with 1 other change artifact: 068d606e user: drh
10:45 Ticket [fc62af45]: 1 change artifact: deedf461 user: dan
09:52 Ticket [fc62af45]: 4 changes artifact: c98b4147 user: dan
Context
2010-03-19
16:52
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 tags: trunk
15:48
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 tags: trunk
13:59
Rewrite a couple of queries used internally by FTS3 to take advantage of the "SELECT max(x) FROM ..." optimization. check-in: b7e42ae7 user: dan tags: trunk
Changes
Unified Diffs Side-by-Side Diffs Patch

Changes to src/pager.c.

Changes to test/jrnlmode.test.

Changes to test/misc1.test.