aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-03-21 16:06:42 +0000
committerdrh <drh@noemail.net>2016-03-21 16:06:42 +0000
commit6369bc3fbb0e561b0df0f10f9c9601218388074a (patch)
tree4f13046f5c541fd968af16a90ea6f2e5c98dc60f /src/os_unix.c
parentf5268268b7d057b7d39454279d80641447b8320b (diff)
downloadsqlite-6369bc3fbb0e561b0df0f10f9c9601218388074a.tar.gz
sqlite-6369bc3fbb0e561b0df0f10f9c9601218388074a.zip
Remove an unreachable branch from the unlink verification logic in the UNIX
VFS. FossilOrigin-Name: 4dc30cce7fdb7dba9a9aad96bb8b499b965610b2
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index d593b952f..6d1bb0b46 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -1366,7 +1366,7 @@ static void verifyDbFile(unixFile *pFile){
sqlite3_log(SQLITE_WARNING, "cannot fstat db file %s", pFile->zPath);
return;
}
- if( buf.st_nlink==0 && (pFile->ctrlFlags & UNIXFILE_DELETE)==0 ){
+ if( buf.st_nlink==0 ){
sqlite3_log(SQLITE_WARNING, "file unlinked while open: %s", pFile->zPath);
return;
}