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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user