Added "asset_database =" option to opensim.ini, so the asset database can be selected. Currently set default back to db4o until more people test using sqlite.

afrisby
MW 2007-09-10 07:23:43 +00:00
parent 15423539f9
commit 91cc820f34
2 changed files with 17 additions and 2 deletions

View File

@ -88,6 +88,8 @@ namespace OpenSim
private string standaloneInventoryPlugin = "";
private string standaloneUserPlugin = "";
private string m_assetStorage = "sqlite";
private Scene m_consoleRegion = null;
public ConsoleCommand CreateAccount = null;
@ -127,6 +129,8 @@ namespace OpenSim
m_scriptEngine = configSource.Configs["Startup"].GetString("script_engine", "DotNetEngine");
m_assetStorage = configSource.Configs["Startup"].GetString("asset_database", "sqlite");
m_DefaultModules = configSource.Configs["Startup"].GetBoolean("default_modules", true);
m_DefaultSharedModules = configSource.Configs["Startup"].GetBoolean("default_shared_modules", true);
m_exceptModules = configSource.Configs["Startup"].GetString("except_modules", "");
@ -266,8 +270,15 @@ namespace OpenSim
{
m_httpServerPort = m_networkServersInfo.HttpListenerPort;
// LocalAssetServer assetServer = new LocalAssetServer();
SQLAssetServer assetServer = new SQLAssetServer();
IAssetServer assetServer;
if (m_assetStorage == "db4o")
{
assetServer = new LocalAssetServer();
}
else
{
assetServer = new SQLAssetServer();
}
assetServer.SetServerInfo(m_networkServersInfo.AssetURL, m_networkServersInfo.AssetSendKey);
m_assetCache = new AssetCache(assetServer);
// m_assetCache = new AssetCache("OpenSim.Region.GridInterfaces.Local.dll", m_networkServersInfo.AssetURL, m_networkServersInfo.AssetSendKey);

View File

@ -9,6 +9,10 @@ storage_plugin = "OpenSim.DataStore.MonoSqlite.dll"
startup_console_commands_file = "startup_commands.txt"
serverside_object_permissions = false
asset_database = "db4o"
;to try sqlite as the asset database , comment out the above line, and uncomment following one
; asset_database = "sqlite"
[StandAlone]
accounts_authenticate = true