You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
[UBA]
* Changed so casdb entry is not invalidated when file is stored from helper since we already have caskey and everything ready * Added options to disable usage of cache hits in cacheclient.. this is a debugging feature * Added option to not use path roots in cache client * Added more debug information to try to figure out bug where cache client sees wrong cas key of file [CL 34170695 by henrik karlsson in ue5-main branch]
This commit is contained in:
@@ -647,7 +647,7 @@ namespace uba
|
||||
}
|
||||
|
||||
|
||||
bool Session::RegisterCreateFileForWrite(StringKey fileNameKey, const StringView& fileName, bool registerRealFile, u64 fileSize, u64 lastWriteTime)
|
||||
bool Session::RegisterCreateFileForWrite(StringKey fileNameKey, const StringView& fileName, bool registerRealFile, u64 fileSize, u64 lastWriteTime, bool invalidateStorage)
|
||||
{
|
||||
// Remote is not updating its own directory table
|
||||
if (m_runningRemote)
|
||||
@@ -772,7 +772,7 @@ namespace uba
|
||||
|
||||
// There are directory crawlers happening in parallel so we need to really make sure to invalidate this one since a crawler can actually
|
||||
// hit this file with information from a query before it was written.. and then it will turn it back to "verified" using old info
|
||||
if (registerRealFile)
|
||||
if (registerRealFile && invalidateStorage)
|
||||
m_storage.InvalidateCachedFileInfo(fileNameKey);
|
||||
|
||||
FileEntryAdded(fileNameKey, lastWriteTime, fileSize);
|
||||
@@ -2100,7 +2100,7 @@ namespace uba
|
||||
Storage::WriteResult res;
|
||||
CompressedObjFileHeader header { CalculateCasKey(mem, fileSize, true, m_workManager, file.name.c_str()) };
|
||||
|
||||
if (!m_storage.WriteCompressed(res, TC("MemoryMap"), InvalidFileHandle, mem, fileSize, file.name.c_str(), &header, sizeof(header)))
|
||||
if (!m_storage.WriteCompressed(res, TC("MemoryMap"), InvalidFileHandle, mem, fileSize, file.name.c_str(), &header, sizeof(header), file.lastWriteTime))
|
||||
return false;
|
||||
shouldEvictFromMemory = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user