Fixed a bug in SQLAssetServer that only seemed to be a problem when running under the MS .net Runtime, but was fine with mono.
parent
0837f6b78d
commit
f6e8cbbd06
|
@ -37,7 +37,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
|
|
||||||
public AssetServerBase()
|
public AssetServerBase()
|
||||||
{
|
{
|
||||||
OpenSim.Framework.Console.MainLog.Instance.Verbose("ASSETSERVER","Starting Db4o asset storage system");
|
OpenSim.Framework.Console.MainLog.Instance.Verbose("ASSETSERVER","Starting asset storage system");
|
||||||
this._assetRequests = new BlockingQueue<ARequest>();
|
this._assetRequests = new BlockingQueue<ARequest>();
|
||||||
|
|
||||||
this._localAssetServerThread = new Thread( RunRequests );
|
this._localAssetServerThread = new Thread( RunRequests );
|
||||||
|
|
|
@ -42,13 +42,14 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
{
|
{
|
||||||
public SQLAssetServer(string pluginName)
|
public SQLAssetServer(string pluginName)
|
||||||
{
|
{
|
||||||
_assetRequests = new BlockingQueue<ARequest>();
|
// _assetRequests = new BlockingQueue<ARequest>();
|
||||||
AddPlugin(pluginName);
|
AddPlugin(pluginName);
|
||||||
}
|
}
|
||||||
|
|
||||||
public SQLAssetServer(IAssetProvider assetProvider)
|
public SQLAssetServer(IAssetProvider assetProvider)
|
||||||
{
|
{
|
||||||
m_assetProviderPlugin = assetProvider;
|
m_assetProviderPlugin = assetProvider;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddPlugin(string FileName)
|
public void AddPlugin(string FileName)
|
||||||
|
@ -92,7 +93,7 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
{
|
{
|
||||||
ARequest req = this._assetRequests.Dequeue();
|
ARequest req = this._assetRequests.Dequeue();
|
||||||
|
|
||||||
MainLog.Instance.Verbose("AssetStorage","Requesting asset: " + req.AssetID);
|
//MainLog.Instance.Verbose("AssetStorage","Requesting asset: " + req.AssetID);
|
||||||
|
|
||||||
AssetBase asset = null;
|
AssetBase asset = null;
|
||||||
lock (syncLock)
|
lock (syncLock)
|
||||||
|
|
Loading…
Reference in New Issue