mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Optimization to sqlite3VtabUnlockList() for the common case when there
is no work to do. FossilOrigin-Name: fc8d45086dc2bcb9bce756088e99e63cbeedf9129139fb0e6a48b43c4f502180
This commit is contained in:
@@ -305,12 +305,12 @@ void sqlite3VtabDisconnect(sqlite3 *db, Table *p){
|
||||
*/
|
||||
void sqlite3VtabUnlockList(sqlite3 *db){
|
||||
VTable *p = db->pDisconnect;
|
||||
db->pDisconnect = 0;
|
||||
|
||||
assert( sqlite3BtreeHoldsAllMutexes(db) );
|
||||
assert( sqlite3_mutex_held(db->mutex) );
|
||||
|
||||
if( p ){
|
||||
db->pDisconnect = 0;
|
||||
sqlite3ExpirePreparedStatements(db, 0);
|
||||
do {
|
||||
VTable *pNext = p->pNext;
|
||||
|
Reference in New Issue
Block a user