SQLite

All files named ”src/memjournal.c”
Login

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

History for src/memjournal.c

2022-08-16
10:52
[c283c6c95d] part of check-in [e123da49cc] Add assert() statements to verify that the SQLITE_OPEN_EXCLUSIVE flag is always passed to the VFS when opening a temporary file. (check-in: [e123da49cc] user: dan branch: trunk, size: 13950)
2022-02-15
11:46
[8bd50ae6d9] part of check-in [d74ec88c2f] New assert() statements to help prove correctness of memjournal.c. (check-in: [d74ec88c2f] user: drh branch: trunk, size: 13883)
2022-02-14
21:11
[8e7e9a2acf] part of check-in [c039d5476e] 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: [c039d5476e] user: drh branch: trunk, size: 13809)
2022-01-01
19:29
[ff4336a98b] part of check-in [73c2b50211] 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: [73c2b50211] user: dan branch: trunk, size: 13784)
2021-05-24
14:35
[a85f0dc5c0] part of check-in [17960165f5] Fix a problem in the in-memory journal code that could occasionally lead to a segfault when a sub-transaction that modified zero pages was committed. (check-in: [17960165f5] user: dan branch: trunk, size: 13785)
2021-03-02
00:42
[431c70a111] part of check-in [fa3506db20] Add ALWAYS() to an always-true conditional. (check-in: [fa3506db20] user: drh branch: trunk, size: 13645)
2021-02-22
15:44
[bb0533253a] part of check-in [e36327fb22] 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: [e36327fb22] user: dan branch: stmt-jrnl-truncate, size: 13637)
2020-07-24
09:14
[90b2ca7e2f] part of check-in [892e9191dc] Fix pointer aliasing problem in the in-memory journal code. Ref: forum post d44eb2fc44 (check-in: [892e9191dc] user: drh branch: trunk, size: 13632)
2020-07-23
20:37
[6ee2c0c5e4] part of check-in [40c44d3810] Turns out this is an aliasing bug in SQLite, not a GCC bug. Was: Work-around for what appears to be another GCC bug - this one for GCC 8.3.0 on ARM. See the SQLite forum post for discussion. (check-in: [40c44d3810] user: drh branch: mistake, size: 14524)
2019-08-14
15:17
[7561c01c90] part of check-in [4d41ca7d6e] Always check for reads past the end of the file on the in-memory journal driver. This used to be an assert(). (check-in: [4d41ca7d6e] user: drh branch: trunk, size: 13624)
2017-07-28
18:16
[6f3d36a0a8] part of check-in [6a505bdd93] More precise determination of when an in-memory journal needs to be spilled to disk. (check-in: [6a505bdd93] user: drh branch: batch-atomic-write, size: 13767)
2017-07-20
21:01
[9b9e579226] part of check-in [f2c6b58450] Transform two #ifdef statements into #if statements. (check-in: [f2c6b58450] user: drh branch: batch-atomic-write, size: 13487)
21:00
[8669a49926] part of check-in [7eb9bf2c5b] Split SQLITE_ENABLE_ATOMIC_WRITE into two options - the original and SQLITE_ENABLE_BATCH_ATOMIC_WRITE. (check-in: [7eb9bf2c5b] user: dan branch: batch-atomic-write, size: 13475)
19:49
[3f1d95947c] part of check-in [416973ede3] Add support for F2FS atomic writes. Untested at this point. (check-in: [416973ede3] user: dan branch: batch-atomic-write, size: 13276)
2016-04-12
11:58
[95752936c1] part of check-in [07f10deabb] Update the header comment on the memjournal.c file. No code changes. (check-in: [07f10deabb] user: drh branch: trunk, size: 13185)
2016-04-07
18:42
[2815ef7684] part of check-in [c4b9c611bd] Prevent the in-memory journal read cursor from entering an inconsistent state when it reads the last few bytes out of the journal file. Fix for ticket [7f7f8026eda38]. (check-in: [c4b9c611bd] user: drh branch: trunk, size: 12682)
2016-03-21
22:28
[5253fd4335] part of check-in [25d776e452] Fix harmless compiler warnings. (check-in: [25d776e452] user: drh branch: trunk, size: 12581)
2016-03-09
04:17
[6423a0817f] part of check-in [8baa2c2c76] Simplifications to the memjournal.c logic to facilitate testing. (check-in: [8baa2c2c76] user: drh branch: trunk, size: 12576)
03:44
[13ae086961] part of check-in [7f00d80c63] Move the write failure test in memjrnlCreateFile() to just after the actual write, thus reducing the number of instances of the test by one. (check-in: [7f00d80c63] user: drh branch: trunk, size: 12626)
02:03
[9704b40cd6] part of check-in [069337a922] Add an #ifdef and an ALWAYS() for coverage. (check-in: [069337a922] user: drh branch: trunk, size: 12621)
2016-03-08
17:44
[02deb8930a] part of check-in [d99ac41548] Modify the memjournal.c code to make it a bit smaller. (check-in: [d99ac41548] user: dan branch: memjournal-exp, size: 12522)
2016-03-05
15:35
[011da5236a] part of check-in [5f2a262d3f] Remove the unused journal.c source file (its function have been subsumed into memjournal.c). Refactor some of the names in memjournal.c. No functional changes. (check-in: [5f2a262d3f] user: drh branch: trunk, size: 13072)
15:03
[7bdc7bced5] part of check-in [4de09777da] Work around (incorrect) ASAN warnings in memjournal.c. (check-in: [4de09777da] user: drh branch: trunk, size: 13021)
2016-03-04
00:13
[56c7688565] part of check-in [b5378dcea5] Get in-memory subjournals working for builds without SQLITE_ENABLE_ATOMIC_WRITE. (check-in: [b5378dcea5] user: drh branch: memjournal-exp, size: 13001)
2016-02-29
20:18
[fea987c580] part of check-in [44b2dc18e2] 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: [44b2dc18e2] user: dan branch: memjournal-exp, size: 12961)
20:00
[9b71f171dd] part of check-in [9fd3f7b9c9] Fix minor problems with new code in memjournal.c. (check-in: [9fd3f7b9c9] user: dan branch: memjournal-exp, size: 12959)
2016-02-27
20:14
[8d045e5012] part of check-in [e0b0b43165] 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: [e0b0b43165] user: dan branch: memjournal-exp, size: 12930)
2016-02-13
23:43
[349a04fb80] part of check-in [6a9c4a3ebf] Enhance ability to debug out-of-memory errors. (check-in: [6a9c4a3ebf] user: mistachkin branch: noMemBkpt, size: 7433)
2014-09-06
16:39
[3eb2c0b51a] part of check-in [e62aab5e92] Fix typos in comments. No code changes. (check-in: [e62aab5e92] user: peter.d.reid branch: trunk, size: 7428)
2013-06-13
15:16
[0683aac6ca] part of check-in [3a72af2a95] Make the MIN() and MAX() macros available in sqliteInt.h. Add TUNING comments to the NGQP and adjust costs slightly. (check-in: [3a72af2a95] user: drh branch: nextgen-query-plan-exp, size: 7428)
2013-04-22
23:38
[41a598445c] part of check-in [1a1cf5aa86] Fix harmless compiler warnings. (check-in: [1a1cf5aa86] user: drh branch: trunk, size: 7539)
2010-09-16
23:18
[0ebce85167] part of check-in [9b272ed46f] Fix a comment typo in memjournal.c (check-in: [9b272ed46f] user: drh branch: trunk, size: 7472)
2010-07-13
23:41
[4a93a25ad9] part of check-in [6336de7aa9] Tweaks to the new shared-memory interface design - mostly comment changes. (check-in: [6336de7aa9] user: drh branch: experimental, size: 7517)
2010-06-26
21:34
[6a81669d6f] part of check-in [e82d008eaf] Suppress various compiler warnings. (check-in: [e82d008eaf] user: drh branch: trunk, size: 7551)
2010-06-03
12:09
[b6c760f64e] part of check-in [dd10a547f1] Remove global variables when compiled with SQLITE_OMIT_WSD (check-in: [dd10a547f1] user: drh branch: trunk, size: 7373)
2010-06-02
05:53
[2293d6a7d4] part of check-in [e7073e23b8] Add some 'const' markers to static data that is really constant. (check-in: [e7073e23b8] user: dan branch: trunk, size: 7352)
2010-04-12
19:44
[f3be374af3] part of check-in [1f2cb94028] Recent changes cause the xSync method of the memory journal implementation to be used, so remove the assert(0). (check-in: [1f2cb94028] user: drh branch: trunk, size: 7346)
2009-11-10
01:30
[5bfc2f33c9] part of check-in [f6c045f649] Remove the obsolete "$Id:$" RCS identifier strings from the source code. (check-in: [f6c045f649] user: drh branch: trunk, size: 7598)
2009-05-04
11:42
[e68cb5f7e8] part of check-in [cac4f3d812] Speed up INSERT operations that add data to UNIQUE or PRIMARY KEY indexes by rationalizing duplicate seek operations. (CVS 6599) (check-in: [cac4f3d812] user: danielk1977 branch: trunk, size: 7672)
2009-04-05
12:22
[1a987d078e] part of check-in [208382e032] Additional code to make sure and to assert that memory allocations have 8-byte alignment. Ticket #3777. (CVS 6450) (check-in: [208382e032] user: drh branch: trunk, size: 7662)
2009-04-02
17:22
[d6f5cc35cd] part of check-in [53dac0a455] Fix a couple of harmless nuisance warnings. (CVS 6438) (check-in: [53dac0a455] user: drh branch: trunk, size: 7625)
2009-04-01
23:09
[2fc78ced7b] part of check-in [05c182a5db] Mark untestable branches of memjournal.c as such. Reduce the size of a single block allocation to a power of two. Reenable the inmemory_journal permutation test. (CVS 6431) (check-in: [05c182a5db] user: drh branch: trunk, size: 7617)
2008-12-20
02:14
[17e9281ea5] part of check-in [c2228bd14a] Specify type "void" in the parameter list of functions that take no parameters. Tickets #3545 and #3546. (CVS 6046) (check-in: [c2228bd14a] user: drh branch: trunk, size: 6671)
2008-12-10
21:19
[e3c9aa679b] part of check-in [ea01d43788] Additional work at eliminating silly compiler warnings. (CVS 6010) (check-in: [ea01d43788] user: drh branch: trunk, size: 6667)
19:26
[f9fbded1b4] part of check-in [c872d55493] 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: [c872d55493] user: drh branch: trunk, size: 6655)
2008-11-19
16:52
[bd536c4d6d] part of check-in [d1abe8a1c9] Fix some compiler warnings that show up when building the amalgamation only. (CVS 5927) (check-in: [d1abe8a1c9] user: danielk1977 branch: trunk, size: 6660)
09:05
[9e1f3c19ba] part of check-in [88134322c3] Changes to avoid "unused parameter" compiler warnings. (CVS 5921) (check-in: [88134322c3] user: danielk1977 branch: trunk, size: 6607)
2008-11-12
15:24
[e2551e8924] part of check-in [f41dd2053c] Do not redefine the MIN and MAX macros if they are already defined. (CVS 5896) (check-in: [f41dd2053c] user: drh branch: trunk, size: 6553)
2008-10-28
18:12
[7ffe4ebf5e] part of check-in [e9c2adbcbf] Add data structure description comments to memjournal.c. (CVS 5847) (check-in: [e9c2adbcbf] user: drh branch: trunk, size: 6533)
2008-10-17
19:13
Added: [b12b20d344] part of check-in [0509eff0e6] Add the memjournal.c file that should have been with the previous checkin. (CVS 5831) (check-in: [0509eff0e6] user: danielk1977 branch: trunk, size: 5616)