diff options
author | drh <drh@noemail.net> | 2017-01-02 18:19:29 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-01-02 18:19:29 +0000 |
commit | 38eef3217237f7066e08763100a9147247d135df (patch) | |
tree | 1e726fb8ad1ed80ed20c8daa73d59f95f540eaa4 /src/attach.c | |
parent | 197231b16012a0adb93f32dba9238d9bcaef6cfe (diff) | |
download | sqlite-38eef3217237f7066e08763100a9147247d135df.tar.gz sqlite-38eef3217237f7066e08763100a9147247d135df.zip |
Avoid unnecessary calls to sqlite3BtreeEnterAll() and sqlite3BtreeLeaveAll()
when no btree is using shared-cache.
FossilOrigin-Name: cfb3158204628eb2fd170090a7f212df0e4ce6c9
Diffstat (limited to 'src/attach.c')
-rw-r--r-- | src/attach.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/attach.c b/src/attach.c index 4fe97bace..393c46ccb 100644 --- a/src/attach.c +++ b/src/attach.c @@ -137,6 +137,7 @@ static void attachFunc( rc = sqlite3BtreeOpen(pVfs, zPath, db, &aNew->pBt, 0, flags); sqlite3_free( zPath ); db->nDb++; + db->skipBtreeMutex = 0; if( rc==SQLITE_CONSTRAINT ){ rc = SQLITE_ERROR; zErrDyn = sqlite3MPrintf(db, "database is already attached"); |