Major ass commit

Added new "Datastore" parameter to simconfig.xml which is passed to storage engines via a new Initialise() function.
This commit is contained in:
Adam Frisby
2007-04-27 21:11:02 +00:00
parent feca5d22c6
commit 6ce5b6e439
6 changed files with 46 additions and 11 deletions

View File

@@ -36,6 +36,8 @@ namespace OpenSim
public string UserRecvKey = "";
private bool isSandbox;
public string DataStore;
public RegionInfo()
{
@@ -144,6 +146,17 @@ namespace OpenSim
{
this.RegionLocY = (uint)Convert.ToUInt32(attri);
}
// Local storage datastore
attri = "";
attri = configData.GetAttribute("Datastore");
if (attri == "")
{
string datastore = OpenSim.Framework.Console.MainConsole.Instance.CmdPrompt("Filename for local storage", "localworld.yap");
configData.SetAttribute("Datastore", datastore);
this.DataStore = datastore;
}
//Sim Listen Port
attri = "";
attri = configData.GetAttribute("SimListenPort");

View File

@@ -44,6 +44,8 @@ namespace OpenSim.world
private AssetCache _assetCache;
private Mutex updateLock;
public string m_datastore;
/// <summary>
/// Creates a new World class, and a region to go with it.
/// </summary>
@@ -257,6 +259,8 @@ namespace OpenSim.world
{
ILocalStorage plug = (ILocalStorage)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
store = plug;
store.Initialise(this.m_datastore);
break;
}