mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-11 11:14:21 +01:00
perf/pager: dont clear page cache on commit
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user