1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Remove an unreachable branch from the unlink verification logic in the UNIX

VFS.

FossilOrigin-Name: 4dc30cce7fdb7dba9a9aad96bb8b499b965610b2
This commit is contained in:
drh
2016-03-21 16:06:42 +00:00
parent f5268268b7
commit 6369bc3fbb
3 changed files with 9 additions and 9 deletions

View File

@@ -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;
}