From 82d7fb75227f30946e856aba3ec20e580532ebff Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 11 Jan 2008 18:44:53 +0000 Subject: * Exprimental prim inventory persistence can now be enabled by users. * This can be turned on by setting storage_prim_inventories_experimental = True in OpenSim.ini * Implemented for sqlite and MySQL, no MSSQL implementation yet * As an experimental feature, there is no guarantee that this won't take down your region or that the db representation won't need to change. * More (and continuing) details at http://opensimulator.org/wiki/OpenSim:Prim_Inventory_Persistence --- OpenSim/Region/Application/OpenSimMain.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Application/OpenSimMain.cs') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 297c9b2..730e53a 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -171,6 +171,7 @@ namespace OpenSim config.Set("serverside_object_permissions", false); config.Set("storage_plugin", "OpenSim.Framework.Data.SQLite.dll"); config.Set("storage_connection_string", "URI=file:OpenSim.db,version=3"); + config.Set("storage_prim_inventories_experimental", false); config.Set("startup_console_commands_file", ""); config.Set("shutdown_console_commands_file", ""); config.Set("script_engine", "OpenSim.Region.ScriptEngine.DotNetEngine.dll"); @@ -242,6 +243,8 @@ namespace OpenSim m_storageDll = startupConfig.GetString("storage_plugin", "OpenSim.DataStore.MonoSqlite.dll"); m_storageConnectionString = startupConfig.GetString("storage_connection_string", "URI=file:OpenSim.db,version=3"); + m_storagePersistPrimInventories + = startupConfig.GetBoolean("storage_prim_inventories_experimental", false); m_startupCommandsFile = startupConfig.GetString("startup_console_commands_file", ""); m_shutdownCommandsFile = startupConfig.GetString("shutdown_console_commands_file", ""); @@ -465,7 +468,7 @@ namespace OpenSim protected override StorageManager CreateStorageManager(string connectionstring) { - return new StorageManager(m_storageDll, connectionstring); + return new StorageManager(m_storageDll, connectionstring, m_storagePersistPrimInventories); } protected override Scene CreateScene(RegionInfo regionInfo, StorageManager storageManager, -- cgit v1.1