1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

All WAL frame overwrites even if there are active savepoints. This is safe

because a ROLLBACK TO will cause all reverted pages to be rewritten to the
WAL file prior to COMMIT.

FossilOrigin-Name: 99b31a6b491c1c51227f478d3713b020d37a17cf
This commit is contained in:
drh
2016-01-09 23:55:47 +00:00
parent c9a9022b21
commit b7c2f86b85
6 changed files with 22 additions and 25 deletions

View File

@@ -2981,9 +2981,7 @@ int sqlite3WalFrames(
#endif
pLive = (WalIndexHdr*)walIndexHdr(pWal);
if( memcmp(&pWal->hdr, (void *)pLive, sizeof(WalIndexHdr))!=0
&& (isCommit || sqlite3PagerSavepointCount(pList->pPager)==0)
){
if( memcmp(&pWal->hdr, (void *)pLive, sizeof(WalIndexHdr))!=0 ){
iFirst = pLive->mxFrame+1;
}