FlotSamAssetcache write to disk needs be sync.
parent
3236e24c74
commit
26b5affb04
|
@ -337,8 +337,10 @@ namespace OpenSim.Region.CoreModules.Asset
|
|||
|
||||
}
|
||||
|
||||
Util.FireAndForget(
|
||||
delegate { WriteFileCache(filename, asset); }, null, "FlotsamAssetCache.UpdateFileCache");
|
||||
// Util.FireAndForget(
|
||||
// delegate { WriteFileCache(filename, asset); }, null, "FlotsamAssetCache.UpdateFileCache");
|
||||
//this must be sync
|
||||
WriteFileCache(filename, asset);
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
@ -800,6 +802,7 @@ namespace OpenSim.Region.CoreModules.Asset
|
|||
stream = File.Open(tempname, FileMode.Create);
|
||||
BinaryFormatter bformatter = new BinaryFormatter();
|
||||
bformatter.Serialize(stream, asset);
|
||||
stream.Flush();
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue