Moved a couple of more configuration fields to ConfigSettings
parent
079469b3f5
commit
204ef95843
|
@ -132,5 +132,21 @@ namespace OpenSim.Framework
|
|||
get { return m_assetStorage; }
|
||||
set { m_assetStorage = value; }
|
||||
}
|
||||
|
||||
protected string m_storageConnectionString;
|
||||
|
||||
public string StorageConnectionString
|
||||
{
|
||||
get { return m_storageConnectionString; }
|
||||
set { m_storageConnectionString = value; }
|
||||
}
|
||||
|
||||
protected string m_estateConnectionString;
|
||||
|
||||
public string EstateConnectionString
|
||||
{
|
||||
get { return m_estateConnectionString; }
|
||||
set { m_estateConnectionString = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -287,8 +287,8 @@ namespace OpenSim
|
|||
Thread.Sleep(3000);
|
||||
}
|
||||
|
||||
m_storageConnectionString = startupConfig.GetString("storage_connection_string");
|
||||
m_estateConnectionString = startupConfig.GetString("estate_connection_string", m_storageConnectionString);
|
||||
m_configSettings.StorageConnectionString = startupConfig.GetString("storage_connection_string");
|
||||
m_configSettings.EstateConnectionString = startupConfig.GetString("estate_connection_string", m_configSettings.StorageConnectionString);
|
||||
m_configSettings.AssetStorage = startupConfig.GetString("asset_database");
|
||||
m_configSettings.ClientstackDll = startupConfig.GetString("clientstack_plugin");
|
||||
}
|
||||
|
@ -591,7 +591,12 @@ namespace OpenSim
|
|||
RemoveRegion(target, cleanUp);
|
||||
}
|
||||
|
||||
protected override StorageManager CreateStorageManager(string connectionstring, string estateconnectionstring)
|
||||
protected override StorageManager CreateStorageManager()
|
||||
{
|
||||
return CreateStorageManager(m_configSettings.StorageConnectionString, m_configSettings.EstateConnectionString);
|
||||
}
|
||||
|
||||
protected StorageManager CreateStorageManager(string connectionstring, string estateconnectionstring)
|
||||
{
|
||||
return new StorageManager(m_configSettings.StorageDll, connectionstring, estateconnectionstring);
|
||||
}
|
||||
|
|
|
@ -61,8 +61,6 @@ namespace OpenSim.Region.ClientStack
|
|||
protected SceneManager m_sceneManager = new SceneManager();
|
||||
|
||||
protected StorageManager m_storageManager;
|
||||
protected string m_storageConnectionString;
|
||||
protected string m_estateConnectionString;
|
||||
|
||||
protected ClientStackManager m_clientStackManager;
|
||||
|
||||
|
@ -73,14 +71,14 @@ namespace OpenSim.Region.ClientStack
|
|||
|
||||
protected abstract void Initialize();
|
||||
protected abstract PhysicsScene GetPhysicsScene();
|
||||
protected abstract StorageManager CreateStorageManager(string connectionstring, string estateconnectionstring);
|
||||
protected abstract StorageManager CreateStorageManager();
|
||||
protected abstract ClientStackManager CreateClientStackManager();
|
||||
protected abstract Scene CreateScene(RegionInfo regionInfo, StorageManager storageManager,
|
||||
AgentCircuitManager circuitManager);
|
||||
|
||||
protected override void StartupSpecific()
|
||||
{
|
||||
m_storageManager = CreateStorageManager(m_storageConnectionString, m_estateConnectionString);
|
||||
m_storageManager = CreateStorageManager();
|
||||
|
||||
m_clientStackManager = CreateClientStackManager();
|
||||
|
||||
|
|
Loading…
Reference in New Issue