mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Simplification of the sqlite3FaultSim() call inside of
sqlite3PagerCommitPhaseOne(). FossilOrigin-Name: 1b0f4cc362cda1dc175aa363ae4e612b7d1164c3
This commit is contained in:
@@ -6196,7 +6196,7 @@ int sqlite3PagerCommitPhaseOne(
|
||||
if( NEVER(pPager->errCode) ) return pPager->errCode;
|
||||
|
||||
/* Provide the ability to easily simulate an I/O error during testing */
|
||||
if( (rc = sqlite3FaultSim(400))!=SQLITE_OK ) return rc;
|
||||
if( sqlite3FaultSim(400) ) return SQLITE_IOERR;
|
||||
|
||||
PAGERTRACE(("DATABASE SYNC: File=%s zMaster=%s nSize=%d\n",
|
||||
pPager->zFilename, zMaster, pPager->dbSize));
|
||||
|
Reference in New Issue
Block a user