diff options
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"); |