Skip to content

Commit 49b5d26

Browse files
committed
libsql-sqlite3: Reset pager in sqlite3PagerWalEndCommit()
We need to reset the pager in sqlite3PagerWalEndCommit() to make sure page cache is invalidated after injecting frames to WAL to ensure they're visible.
1 parent e6a4b1a commit 49b5d26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libsql-sqlite3/src/pager.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7821,6 +7821,7 @@ int sqlite3PagerWalEndCommit(Pager *pPager) {
78217821
if (rc != SQLITE_OK) {
78227822
return rc;
78237823
}
7824+
pager_reset(pPager);
78247825
pager_unlock(pPager);
78257826
return rc;
78267827
}

0 commit comments

Comments
 (0)