mirror of
https://github.com/immich-app/drift.git
synced 2026-09-30 13:22:57 +08:00
Fix range error in page caching
This commit is contained in:
@@ -289,7 +289,7 @@ final class _BlockCache {
|
||||
|
||||
// Trim the range from page, endPageInclusive to remove pages at both ends
|
||||
// that have already been cached.
|
||||
while (cachedPages[page] != null && page < endPageExclusive) {
|
||||
while (page < endPageExclusive && cachedPages[page] != null) {
|
||||
page++;
|
||||
}
|
||||
while (cachedPages[endPageExclusive - 1] != null &&
|
||||
|
||||
Reference in New Issue
Block a user