1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Remove unreachable branches to facilitate test coverage.

FossilOrigin-Name: 86bcb9aab901713684f978479d29304cc9699e84
This commit is contained in:
drh
2010-08-31 01:09:15 +00:00
parent d4187c716c
commit 8c96a6eac0
4 changed files with 19 additions and 21 deletions

View File

@@ -1755,9 +1755,10 @@ static int vdbeCommit(sqlite3 *db, Vdbe *p){
Btree *pBt = db->aDb[i].pBt;
if( sqlite3BtreeIsInTrans(pBt) ){
char const *zFile = sqlite3BtreeGetJournalname(pBt);
if( zFile==0 || zFile[0]==0 ){
if( zFile==0 ){
continue; /* Ignore TEMP and :memory: databases */
}
assert( zFile[0]!=0 );
if( !needSync && !sqlite3BtreeSyncDisabled(pBt) ){
needSync = 1;
}