mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
add GC.collect to flotsam cache expire. This is ugly but so is GC
This commit is contained in:
@@ -237,6 +237,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
public HashSet<UUID> UncertainAssetsUUIDs { get; private set; }
|
||||
public int possibleNotAssetCount { get; set; }
|
||||
public int ErrorCount { get; private set; }
|
||||
public int AssetGetCount;
|
||||
private bool verbose = true;
|
||||
|
||||
/// <summary>
|
||||
@@ -291,6 +292,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
UncertainAssetsUUIDs = uncertainAssetsUUIDs;
|
||||
ErrorCount = 0;
|
||||
possibleNotAssetCount = 0;
|
||||
AssetGetCount = 0;
|
||||
}
|
||||
|
||||
public bool AddGathered(UUID uuid, sbyte type)
|
||||
@@ -561,6 +563,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
return;
|
||||
}
|
||||
|
||||
++AssetGetCount;
|
||||
|
||||
if(UncertainAssetsUUIDs.Contains(assetUuid))
|
||||
UncertainAssetsUUIDs.Remove(assetUuid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user