diff options
author | MW | 2007-09-10 07:23:43 +0000 |
---|---|---|
committer | MW | 2007-09-10 07:23:43 +0000 |
commit | 91cc820f34cef19e1bb9659faf2d6c7070dcda96 (patch) | |
tree | 22ab9f33f9fd910ddcfc9b2e4cd6b9e2191c69ad | |
parent | hooked up sdague new sqlite asset database provider to the old asset system. ... (diff) | |
download | opensim-SC-91cc820f34cef19e1bb9659faf2d6c7070dcda96.zip opensim-SC-91cc820f34cef19e1bb9659faf2d6c7070dcda96.tar.gz opensim-SC-91cc820f34cef19e1bb9659faf2d6c7070dcda96.tar.bz2 opensim-SC-91cc820f34cef19e1bb9659faf2d6c7070dcda96.tar.xz |
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.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/OpenSimMain.cs | 15 | ||||
-rw-r--r-- | bin/OpenSim.ini | 4 |
2 files changed, 17 insertions, 2 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 8437933..ea2e2ff 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs | |||
@@ -88,6 +88,8 @@ namespace OpenSim | |||
88 | private string standaloneInventoryPlugin = ""; | 88 | private string standaloneInventoryPlugin = ""; |
89 | private string standaloneUserPlugin = ""; | 89 | private string standaloneUserPlugin = ""; |
90 | 90 | ||
91 | private string m_assetStorage = "sqlite"; | ||
92 | |||
91 | private Scene m_consoleRegion = null; | 93 | private Scene m_consoleRegion = null; |
92 | 94 | ||
93 | public ConsoleCommand CreateAccount = null; | 95 | public ConsoleCommand CreateAccount = null; |
@@ -127,6 +129,8 @@ namespace OpenSim | |||
127 | 129 | ||
128 | m_scriptEngine = configSource.Configs["Startup"].GetString("script_engine", "DotNetEngine"); | 130 | m_scriptEngine = configSource.Configs["Startup"].GetString("script_engine", "DotNetEngine"); |
129 | 131 | ||
132 | m_assetStorage = configSource.Configs["Startup"].GetString("asset_database", "sqlite"); | ||
133 | |||
130 | m_DefaultModules = configSource.Configs["Startup"].GetBoolean("default_modules", true); | 134 | m_DefaultModules = configSource.Configs["Startup"].GetBoolean("default_modules", true); |
131 | m_DefaultSharedModules = configSource.Configs["Startup"].GetBoolean("default_shared_modules", true); | 135 | m_DefaultSharedModules = configSource.Configs["Startup"].GetBoolean("default_shared_modules", true); |
132 | m_exceptModules = configSource.Configs["Startup"].GetString("except_modules", ""); | 136 | m_exceptModules = configSource.Configs["Startup"].GetString("except_modules", ""); |
@@ -266,8 +270,15 @@ namespace OpenSim | |||
266 | { | 270 | { |
267 | m_httpServerPort = m_networkServersInfo.HttpListenerPort; | 271 | m_httpServerPort = m_networkServersInfo.HttpListenerPort; |
268 | 272 | ||
269 | // LocalAssetServer assetServer = new LocalAssetServer(); | 273 | IAssetServer assetServer; |
270 | SQLAssetServer assetServer = new SQLAssetServer(); | 274 | if (m_assetStorage == "db4o") |
275 | { | ||
276 | assetServer = new LocalAssetServer(); | ||
277 | } | ||
278 | else | ||
279 | { | ||
280 | assetServer = new SQLAssetServer(); | ||
281 | } | ||
271 | assetServer.SetServerInfo(m_networkServersInfo.AssetURL, m_networkServersInfo.AssetSendKey); | 282 | assetServer.SetServerInfo(m_networkServersInfo.AssetURL, m_networkServersInfo.AssetSendKey); |
272 | m_assetCache = new AssetCache(assetServer); | 283 | m_assetCache = new AssetCache(assetServer); |
273 | // m_assetCache = new AssetCache("OpenSim.Region.GridInterfaces.Local.dll", m_networkServersInfo.AssetURL, m_networkServersInfo.AssetSendKey); | 284 | // m_assetCache = new AssetCache("OpenSim.Region.GridInterfaces.Local.dll", m_networkServersInfo.AssetURL, m_networkServersInfo.AssetSendKey); |
diff --git a/bin/OpenSim.ini b/bin/OpenSim.ini index f65523c..e6e1fe3 100644 --- a/bin/OpenSim.ini +++ b/bin/OpenSim.ini | |||
@@ -9,6 +9,10 @@ storage_plugin = "OpenSim.DataStore.MonoSqlite.dll" | |||
9 | startup_console_commands_file = "startup_commands.txt" | 9 | startup_console_commands_file = "startup_commands.txt" |
10 | serverside_object_permissions = false | 10 | serverside_object_permissions = false |
11 | 11 | ||
12 | asset_database = "db4o" | ||
13 | ;to try sqlite as the asset database , comment out the above line, and uncomment following one | ||
14 | ; asset_database = "sqlite" | ||
15 | |||
12 | 16 | ||
13 | [StandAlone] | 17 | [StandAlone] |
14 | accounts_authenticate = true | 18 | accounts_authenticate = true |