1
0
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:
drh
2016-05-12 19:05:35 +00:00
parent d22f5099b5
commit a7a45973e9
3 changed files with 8 additions and 8 deletions

View File

@@ -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));