Hello,

Internal SQLite function unixDelete() returns SQLITE_IOERR_DELETE called
from sqlite3_backup_step on Solaris.
SQLite 3.7.6.2
GCC 3.4.3 / 4.6.1

(gdb) bt
#0 unixDelete (NotUsed=0x27444c0,
zPath=0x2964c58 "/opt/repo-copy.db-wal", dirSync=0)
at sqlite3.c:29228
#1 0x0000000000fa896a in sqlite3OsDelete (pVfs=0x27444c0,
zPath=0x2964c58 "/opt/repo-copy.db-wal", dirSync=0)
at sqlite3.c:14067
#2 0x0000000000fb387f in pagerOpenWalIfPresent (pPager=0x29649f8)
at sqlite3.c:39463
#3 0x0000000000fb4be7 in sqlite3PagerSharedLock (pPager=0x29649f8)
at sqlite3.c:41204
#4 0x0000000000fba9f6 in lockBtree (pBt=0x2929c28) at sqlite3.c:49278
#5 0x0000000000fbaee3 in sqlite3BtreeBeginTrans (p=0x2959cc8, wrflag=2)
at sqlite3.c:49570
#6 0x0000000000fc1bad in sqlite3_backup_step (p=0x2964c98, nPage=-1)
at sqlite3.c:55484

As I understand it could not set errno in unlink() called from this block:

if( unlink(zPath)==(-1) && errno!=ENOENT ){
  return unixLogError(SQLITE_IOERR_DELETE, "unlink", zPath);
}
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to