mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Make sure the unix backend returns SQLITE_FULL if write() fails with an
ENOSPC error code. FossilOrigin-Name: 721e3c16b389a43f5d7c47a8fd0294473a39dad2
This commit is contained in:
@@ -3090,7 +3090,7 @@ static int unixWrite(
|
||||
SimulateDiskfullError(( wrote=0, amt=1 ));
|
||||
|
||||
if( amt>0 ){
|
||||
if( wrote<0 ){
|
||||
if( wrote<0 && pFile->lastErrno!=ENOSPC ){
|
||||
/* lastErrno set by seekAndWrite */
|
||||
return SQLITE_IOERR_WRITE;
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user