Skip to content
Snippets Groups Projects
Commit e28c1b46 authored by Callum Prentice's avatar Callum Prentice
Browse files

Speculative fix for SL-15547: Viewer hung while looking for a file in the...

Speculative fix for SL-15547: Viewer hung while looking for a file in the cache - since I am unable to repro, this might be enough
parent 8631a7a0
No related branches found
No related tags found
No related merge requests found
...@@ -165,11 +165,14 @@ BOOL LLFileSystem::read(U8* buffer, S32 bytes) ...@@ -165,11 +165,14 @@ BOOL LLFileSystem::read(U8* buffer, S32 bytes)
} }
} }
// update the last access time for the file - this is required if (success == TRUE)
// even though we are reading and not writing because this is the {
// way the cache works - it relies on a valid "last accessed time" for // update the last access time for the file - this is required
// each file so it knows how to remove the oldest, unused files // even though we are reading and not writing because this is the
LLDiskCache::getInstance()->updateFileAccessTime(filename); // way the cache works - it relies on a valid "last accessed time" for
// each file so it knows how to remove the oldest, unused files
LLDiskCache::getInstance()->updateFileAccessTime(filename);
}
return success; return success;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment