mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-08 17:54:22 +01:00
Implement GClock algorithm to distinguish between hot pages and scan touches
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -2421,7 +2421,7 @@ mod tests {
|
||||
})
|
||||
};
|
||||
let _ = thread.join();
|
||||
let cache = cache.read();
|
||||
let mut cache = cache.write();
|
||||
let page_key = PageCacheKey::new(1);
|
||||
let page = cache.get(&page_key).unwrap();
|
||||
assert_eq!(page.unwrap().get().id, 1);
|
||||
|
||||
Reference in New Issue
Block a user