aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Asset
diff options
context:
space:
mode:
authorUbitUmarov2019-11-01 15:00:22 +0000
committerUbitUmarov2019-11-01 15:00:22 +0000
commit26b5affb04214771b4243a76b9bbf02f4fb0a07a (patch)
tree7091f28c0286a61c9dd07f513a311828a219d1ea /OpenSim/Region/CoreModules/Asset
parenta disabled module has no caps to tell viewers (cameraonlymoduel) (diff)
downloadopensim-SC-26b5affb04214771b4243a76b9bbf02f4fb0a07a.zip
opensim-SC-26b5affb04214771b4243a76b9bbf02f4fb0a07a.tar.gz
opensim-SC-26b5affb04214771b4243a76b9bbf02f4fb0a07a.tar.bz2
opensim-SC-26b5affb04214771b4243a76b9bbf02f4fb0a07a.tar.xz
FlotSamAssetcache write to disk needs be sync.
Diffstat (limited to 'OpenSim/Region/CoreModules/Asset')
-rwxr-xr-xOpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
index 5a48134..bbf7be7 100755
--- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
+++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
@@ -337,8 +337,10 @@ namespace OpenSim.Region.CoreModules.Asset
337 337
338 } 338 }
339 339
340 Util.FireAndForget( 340 // Util.FireAndForget(
341 delegate { WriteFileCache(filename, asset); }, null, "FlotsamAssetCache.UpdateFileCache"); 341 // delegate { WriteFileCache(filename, asset); }, null, "FlotsamAssetCache.UpdateFileCache");
342 //this must be sync
343 WriteFileCache(filename, asset);
342 } 344 }
343 } 345 }
344 catch (Exception e) 346 catch (Exception e)
@@ -800,6 +802,7 @@ namespace OpenSim.Region.CoreModules.Asset
800 stream = File.Open(tempname, FileMode.Create); 802 stream = File.Open(tempname, FileMode.Create);
801 BinaryFormatter bformatter = new BinaryFormatter(); 803 BinaryFormatter bformatter = new BinaryFormatter();
802 bformatter.Serialize(stream, asset); 804 bformatter.Serialize(stream, asset);
805 stream.Flush();
803 } 806 }
804 catch (IOException e) 807 catch (IOException e)
805 { 808 {