aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment
diff options
context:
space:
mode:
authorJustin Clarke Casey2007-12-27 00:53:13 +0000
committerJustin Clarke Casey2007-12-27 00:53:13 +0000
commit54d9fbc0fe419dfb19da587d7b27d9a152a42946 (patch)
treef04bbd9eafd2b563d5f24334320c173a3558d109 /OpenSim/Region/Environment
parent* Play the 'landing' animation when landing and minimize the collision protec... (diff)
downloadopensim-SC_OLD-54d9fbc0fe419dfb19da587d7b27d9a152a42946.zip
opensim-SC_OLD-54d9fbc0fe419dfb19da587d7b27d9a152a42946.tar.gz
opensim-SC_OLD-54d9fbc0fe419dfb19da587d7b27d9a152a42946.tar.bz2
opensim-SC_OLD-54d9fbc0fe419dfb19da587d7b27d9a152a42946.tar.xz
Prim inventory persistence phase 1: Creation of preliminary table in sqlite.
No user functionality yet. This code is not turned on, so there is no possibility of disruption to existing databases.
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r--OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs7
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs26
-rw-r--r--OpenSim/Region/Environment/StorageManager.cs2
3 files changed, 16 insertions, 19 deletions
diff --git a/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs b/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs
index 7c63027..91aa5ff 100644
--- a/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs
+++ b/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs
@@ -38,9 +38,10 @@ namespace OpenSim.Region.Environment.Interfaces
38 /// <summary> 38 /// <summary>
39 /// Initialises the data storage engine 39 /// Initialises the data storage engine
40 /// </summary> 40 /// </summary>
41 /// <param name="filename">The file to save the database to (may not be applicable)</param> 41 /// <param name="filename">The file to save the database to (may not be applicable). Alternatively,
42 /// <param name="dbname">The name of the database to store to (may not be applicable)</param> 42 /// a connection string for the database</param>
43 void Initialise(string filename); 43 /// <param name="persistPrimInventories">Temporary switch while this option is immature</param>
44 void Initialise(string filename, bool persistPrimInventories);
44 45
45 void StoreObject(SceneObjectGroup obj, LLUUID regionUUID); 46 void StoreObject(SceneObjectGroup obj, LLUUID regionUUID);
46 void RemoveObject(LLUUID uuid, LLUUID regionUUID); 47 void RemoveObject(LLUUID uuid, LLUUID regionUUID);
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index 33f481d..34705db 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -1008,21 +1008,17 @@ namespace OpenSim.Region.Environment.Scenes
1008 /// <param name="localID"></param> 1008 /// <param name="localID"></param>
1009 public bool GetInventoryFileName(IClientAPI client, uint localID) 1009 public bool GetInventoryFileName(IClientAPI client, uint localID)
1010 { 1010 {
1011// if (localID == m_localID) 1011 if (m_inventorySerial > 0)
1012// { 1012 {
1013 if (m_inventorySerial > 0) 1013 client.SendTaskInventory(m_uuid, (short)m_inventorySerial,
1014 { 1014 Helpers.StringToField(m_inventoryFileName));
1015 client.SendTaskInventory(m_uuid, (short)m_inventorySerial, 1015 return true;
1016 Helpers.StringToField(m_inventoryFileName)); 1016 }
1017 return true; 1017 else
1018 } 1018 {
1019 else 1019 client.SendTaskInventory(m_uuid, 0, new byte[0]);
1020 { 1020 return false;
1021 client.SendTaskInventory(m_uuid, 0, new byte[0]); 1021 }
1022 return false;
1023 }
1024// }
1025 return false;
1026 } 1022 }
1027 1023
1028 public string RequestInventoryFile(IXfer xferManager) 1024 public string RequestInventoryFile(IXfer xferManager)
diff --git a/OpenSim/Region/Environment/StorageManager.cs b/OpenSim/Region/Environment/StorageManager.cs
index b7bd8cc..2c04309 100644
--- a/OpenSim/Region/Environment/StorageManager.cs
+++ b/OpenSim/Region/Environment/StorageManager.cs
@@ -62,7 +62,7 @@ namespace OpenSim.Region.Environment
62 { 62 {
63 IRegionDataStore plug = 63 IRegionDataStore plug =
64 (IRegionDataStore) Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString())); 64 (IRegionDataStore) Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
65 plug.Initialise(connectionstring); 65 plug.Initialise(connectionstring, false);
66 66
67 m_dataStore = plug; 67 m_dataStore = plug;
68 68