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

Only log unlink() errors if the error is something other than

SQLITE_IOERR_DELETE_NOENT.  The error is still reported up the stack, it
is simply not added to the sqlite3_log().

FossilOrigin-Name: 5a3b07f0f5dfae7eea870303f52f37d6a17f1da2
This commit is contained in:
drh
2012-11-09 21:40:02 +00:00
parent 9fc5b4a539
commit b43081675d
3 changed files with 10 additions and 10 deletions

View File

@@ -5378,9 +5378,9 @@ static int unixDelete(
if( errno==ENOENT ){
rc = SQLITE_IOERR_DELETE_NOENT;
}else{
rc = SQLITE_IOERR_DELETE;
rc = unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath);
}
return unixLogError(rc, "unlink", zPath);
return rc;
}
#ifndef SQLITE_DISABLE_DIRSYNC
if( (dirSync & 1)!=0 ){