mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Generalize the in-memory journal so that it is able to accept writes that
begin at any offset less than or equal to the current file size. FossilOrigin-Name: c039d5476e0836c16d8c1ad99a2620f7fd04eb4b0e5dcb2246b42dde2ae1f95a
This commit is contained in:
@@ -4497,12 +4497,6 @@ static int subjournalPage(PgHdr *pPg){
|
||||
if( rc==SQLITE_OK ){
|
||||
rc = sqlite3OsWrite(pPager->sjfd, pData2, pPager->pageSize, offset+4);
|
||||
}
|
||||
if( rc!=SQLITE_OK ){
|
||||
/* Subjournal writes should be "atomic" in the sense that we should
|
||||
** never allow a partial write. If anything goes wrong, make sure
|
||||
** to roll back any partial writes that may have occurred */
|
||||
(void)sqlite3OsTruncate(pPager->sjfd, offset);
|
||||
}
|
||||
}
|
||||
}
|
||||
if( rc==SQLITE_OK ){
|
||||
|
Reference in New Issue
Block a user