perf/pager: dont clear page cache on commit

This commit is contained in:
Jussi Saurio
2025-08-02 13:09:36 +03:00
parent 2c05a3e787
commit 4497d22d3f

View File

@@ -1170,11 +1170,6 @@ impl Pager {
let is_last_frame = current_page_to_append_idx
== self.commit_info.borrow().dirty_pages.len() - 1;
if is_last_frame {
// Let's clear the page cache now
{
let mut cache = self.page_cache.write();
cache.clear().unwrap();
}
self.dirty_pages.borrow_mut().clear();
self.commit_info.borrow_mut().state = CommitState::SyncWal;
} else {