mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 08:55:40 +01:00
clear dirty pages on rollback
This commit is contained in:
@@ -1078,6 +1078,7 @@ impl Pager {
|
||||
}
|
||||
|
||||
pub fn rollback(&self) -> Result<(), LimboError> {
|
||||
self.dirty_pages.borrow_mut().clear();
|
||||
let mut cache = self.page_cache.write();
|
||||
cache.unset_dirty_all_pages();
|
||||
cache.clear().expect("failed to clear page cache");
|
||||
|
||||
Reference in New Issue
Block a user