SQLite

All files named ”src/btmutex.c”
Login

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

History for src/btmutex.c

2025-02-22
16:44
[30dada73a8] part of check-in [742827f049] Tamp down various harmless compiler warnings. Use "int" in places instead of "u16" or "i16" since the compiler complains less and generates faster code. (check-in: [742827f049] user: drh branch: trunk, size: 9363)
2023-06-07
08:40
[79a4367044] part of check-in [26c1bb4bd9] Add a C-source spell-checking facility. make misspell (on Nix) (check-in: [26c1bb4bd9] user: larrybr branch: spell-check, size: 9364)
2022-08-22
02:00
[6ffb0a22c1] part of check-in [e5eaa80e81] Add the new internal interface sqlite3DbNNFreeNN(db,ptr) where both the db and ptr parameters are guaranteed to be non-NULL. Use this where appropriate to save more than 2 million CPU cycles on the standard performance test. (check-in: [e5eaa80e81] user: drh branch: trunk, size: 9364)
2020-07-29
16:18
[11de564261] part of check-in [a80ae2c98b] 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: [a80ae2c98b] user: drh branch: typos, size: 9320)
2018-11-20
16:02
[786ad5319e] part of check-in [dfab7170ed] Consolidate the two sqlite3SchemaToIndex() routines. (check-in: [dfab7170ed] user: dan branch: reuse-schema1, size: 9395)
2018-11-17
18:11
[aeee7f0458] part of check-in [6d7a7e5faf] Fix further problems with the feature on this branch. (check-in: [6d7a7e5faf] user: dan branch: reuse-schema1, size: 9396)
2018-04-25
12:01
[8acc2f464e] part of check-in [58cf812fd8] Avoid many unnecessary calls to sqlite3ReadSchema() and sqlite3Init() when the schema is known to be valid already. (check-in: [58cf812fd8] user: drh branch: trunk, size: 9320)
2017-01-02
18:19
[0e9ce2d561] part of check-in [cfb3158204] Avoid unnecessary calls to sqlite3BtreeEnterAll() and sqlite3BtreeLeaveAll() when no btree is using shared-cache. (check-in: [cfb3158204] user: drh branch: trunk, size: 9323)
2016-01-07
16:06
[bc87dd3b06] part of check-in [d0214602d4] Have the vdbe layer call sqlite3BtreeEnter() on all b-trees in use from within sqlite3VdbeExec() even in SQLITE_THREADSAFE=0 builds. This ensures that BtShared.db is set correctly. (check-in: [d0214602d4] user: dan branch: shared-cache-fix, size: 9014)
2015-03-19
15:04
[45a968cc85] part of check-in [31f54d7b07] Add an assert() to check that the database mutex is held in sqlite3BtreeLeave(). (check-in: [31f54d7b07] user: dan branch: trunk, size: 9047)
2014-09-06
16:39
[49ca66250c] part of check-in [e62aab5e92] Fix typos in comments. No code changes. (check-in: [e62aab5e92] user: peter.d.reid branch: trunk, size: 9001)
2014-08-22
21:58
[ec9d3f1295] part of check-in [8914530644] Performance enhancements in the b-tree mutex logic. (check-in: [8914530644] user: drh branch: trunk, size: 9002)
2011-04-06
22:05
[976f45a12e] part of check-in [614de91a50] Fix a performance regression: Keep two btree masks in each prepared statement; one for btrees used and another for btrees that require locks. Only try to lock the btrees identified by the second mask. (check-in: [614de91a50] user: drh branch: trunk, size: 8531)
2011-04-05
19:27
[7907af20b9] part of check-in [51039b3578] Simplifications to the sqlite3BtreeEnterAll() and LeaveAll() routines. Just have them call BtreeEnter and BtreeLeave() repeatedly rather than trying to be clever. (check-in: [51039b3578] user: drh branch: trunk, size: 8339)
17:31
[1f951523ac] part of check-in [242ce7cff4] Remove the mutex counter and the logic that attempts to verify that btree mutexes are held continuously. We are not making that assumption at this time. (check-in: [242ce7cff4] user: drh branch: trunk, size: 9128)
2011-04-04
18:22
[b81062220a] part of check-in [ae8374af05] Add a description of access rules for the Schema object and lots of asserts to verify that the access rules are followed. (check-in: [ae8374af05] user: drh branch: schema-parse-refactor, size: 10166)
00:14
[3e595ee1bb] part of check-in [d81708f7d1] Remove the BtreeMutexArray object - use the Vdbe.btreeMask field to accomplish the same result. Add a generation counter to btree mutexes in order to assert that mutexes are never temporarily dropped over a range of instructions in order to do deadlock avoidance in some subroutine. Lock all btrees in any Vdbe program that uses OP_ParseSchema. (check-in: [d81708f7d1] user: drh branch: trunk, size: 9439)
2011-04-03
02:41
[5ba4ca0216] part of check-in [28c5f12e98] Fix typos in comments. No changes to code. (check-in: [28c5f12e98] user: drh branch: trunk, size: 10472)
2009-11-10
01:30
[96a12f50f7] part of check-in [f6c045f649] Remove the obsolete "$Id:$" RCS identifier strings from the source code. (check-in: [f6c045f649] user: drh branch: trunk, size: 10471)
2009-07-20
12:33
[0f43a75bb5] part of check-in [609022caff] Use an ALWAYS() on a conditional in btmutex.c that is always true. (CVS 6910) (check-in: [609022caff] user: drh branch: trunk, size: 10529)
2009-07-17
11:44
[f7b059a9b0] part of check-in [fb1b955dda] Code simplifications in support of structural testing. (CVS 6900) (check-in: [fb1b955dda] user: drh branch: trunk, size: 10366)
2009-04-10
12:55
[9b899c0d8d] part of check-in [683e4bd747] Changes to ensure that when running in shared-cache mode with a non-threadsafe build, the correct busy-handler callback is always invoked. (CVS 6481) (check-in: [683e4bd747] user: danielk1977 branch: trunk, size: 10275)
09:47
[527b63e275] part of check-in [ed6620ba58] Always set BtShared.db when entering the BtShared mutex. Ticket #3793. (CVS 6480) (check-in: [ed6620ba58] user: danielk1977 branch: trunk, size: 10040)
2009-03-05
04:20
[341502bc49] part of check-in [6404afa0c5] Corrected typos and misspellings. Ticket #3702. (CVS 6336) (check-in: [6404afa0c5] user: shane branch: trunk, size: 9248)
2008-11-17
19:18
[63c5cc4ad5] part of check-in [8009220c36] Modifications to avoid unsigned/signed comparisons in various files. (CVS 5914) (check-in: [8009220c36] user: danielk1977 branch: trunk, size: 9254)
2008-10-07
15:25
[3a90096c30] part of check-in [02a12eb1cf] Remove the SQLITE_MUTEX_APPDEF compile-time option. The SQLITE_THREADSAFE=0 option always removes all mutex code. For application-defined mutexes only, use SQLITE_THREADSAFE=1 with SQLITE_MUTEX_NOOP=1. Ticket #3421. (CVS 5779) (check-in: [02a12eb1cf] user: drh branch: trunk, size: 9269)
2008-07-14
19:39
[709cad2cdc] part of check-in [7d5e1c4375] Add a new test script to exercise the deadlock avoidance code in the btree mutex logic. (CVS 5412) (check-in: [7d5e1c4375] user: drh branch: trunk, size: 9326)
2008-01-23
12:52
[483ced3c52] part of check-in [9f95d79dae] Improvements to test coverage in the lemon-generated parser and in the sqlite3_get_table() interface. (CVS 4745) (check-in: [9f95d79dae] user: drh branch: trunk, size: 9350)
2007-12-07
18:55
[5d39da37c9] part of check-in [c9eb65912f] 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: [c9eb65912f] user: drh branch: trunk, size: 9293)
2007-08-30
01:19
[442be6f068] part of check-in [e40d40a5d4] Fix for the sqlite3AbortOtherActiveVdbes() problem. (CVS 4328) (check-in: [e40d40a5d4] user: drh branch: trunk, size: 9328)
2007-08-29
17:43
[abc2eda085] part of check-in [2732af0ec7] Improvements to mutex asserts. The quick test runs to completion without assertion faults. (CVS 4324) (check-in: [2732af0ec7] user: drh branch: trunk, size: 9315)
04:00
[c04e67d99d] part of check-in [e8060f85e7] Better asserts(). But now some of the tests are busted again. (CVS 4320) (check-in: [e8060f85e7] user: drh branch: trunk, size: 8835)
00:33
[0abcf98bd6] part of check-in [844d40b837] More locking fixes. Now makes it all the way through quick.test. There are errors but no assertion faults. Progress. (CVS 4319) (check-in: [844d40b837] user: drh branch: trunk, size: 7832)
2007-08-28
23:28
[fc9d8316fc] part of check-in [f84550be0a] The shared_err test runs with no errors. But a potential deadlock has been discovered and is still unfixed. (CVS 4317) (check-in: [f84550be0a] user: drh branch: trunk, size: 6248)
16:44
[3a19fcb311] part of check-in [af24e7d01a] Fix locking bug in btshared.c. (CVS 4313) (check-in: [af24e7d01a] user: drh branch: trunk, size: 6230)
02:27
Added: [e11c59a7a6] part of check-in [b8cc493b47] Work toward correct btree locking in a multithreaded environment. (CVS 4307) (check-in: [b8cc493b47] user: drh branch: trunk, size: 6171)