aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2012-11-09 21:40:02 +0000
committerdrh <drh@noemail.net>2012-11-09 21:40:02 +0000
commitb43081675d225ef7c5dfbab3adfbeb6c9b509ed2 (patch)
treef8cab41541643dc2709f1ef8165d12275030c589 /src/os_unix.c
parent9fc5b4a5399144db31b1bf88632ea615dcd5fb2f (diff)
downloadsqlite-b43081675d225ef7c5dfbab3adfbeb6c9b509ed2.tar.gz
sqlite-b43081675d225ef7c5dfbab3adfbeb6c9b509ed2.zip
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
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 1de88f942..ca6213943 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -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 ){