1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Add new extended error codes for I/O errors on seek and shared-memory map.

Add sqlite3_log() calls in the windows backend to record details of errors.

FossilOrigin-Name: fe603217fce8e3a696bd108d5ae7f7a291b7e215
This commit is contained in:
drh
2011-04-13 20:26:13 +00:00
parent 47fb000854
commit 50990dbb29
5 changed files with 135 additions and 85 deletions

View File

@@ -3915,7 +3915,7 @@ static int unixShmMap(
MAP_SHARED, pShmNode->h, pShmNode->nRegion*szRegion
);
if( pMem==MAP_FAILED ){
rc = SQLITE_IOERR;
rc = unixLogError(SQLITE_IOERR_SHMMAP, "mmap", pShmNode->zFilename);
goto shmpage_out;
}
}else{