diff options
author | Justin Clarke Casey | 2008-01-21 16:42:53 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-01-21 16:42:53 +0000 |
commit | 46fe6e2f978ef03a20768e629e9cd2437c707bba (patch) | |
tree | 613fc4e709fb7736e5f462c9bc7da99ae3a636d1 /OpenSim/Region | |
parent | comment out use of the TribalMedia data mapper layer (diff) | |
download | opensim-SC_OLD-46fe6e2f978ef03a20768e629e9cd2437c707bba.zip opensim-SC_OLD-46fe6e2f978ef03a20768e629e9cd2437c707bba.tar.gz opensim-SC_OLD-46fe6e2f978ef03a20768e629e9cd2437c707bba.tar.bz2 opensim-SC_OLD-46fe6e2f978ef03a20768e629e9cd2437c707bba.tar.xz |
* Scripts edited within a prim will now be persisted correctly
* On restart the latest save will be restored rather than the very first dragged in scripts
* Also add previously missed out database commits to separate prim inventory commit path (sigh)
Diffstat (limited to 'OpenSim/Region')
4 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs b/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs index 47768b7..d0b5680 100644 --- a/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs +++ b/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs | |||
@@ -63,7 +63,7 @@ namespace OpenSim.Region.Environment.Interfaces | |||
63 | /// Store a prim's inventory | 63 | /// Store a prim's inventory |
64 | /// </summary> | 64 | /// </summary> |
65 | /// <returns></returns> | 65 | /// <returns></returns> |
66 | void StorePrimInventory(LLUUID primID, IDictionary<LLUUID, TaskInventoryItem> items); | 66 | void StorePrimInventory(LLUUID primID, ICollection<TaskInventoryItem> items); |
67 | 67 | ||
68 | List<SceneObjectGroup> LoadObjects(LLUUID regionUUID); | 68 | List<SceneObjectGroup> LoadObjects(LLUUID regionUUID); |
69 | 69 | ||
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs index a700974..d4e2102 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | |||
@@ -401,7 +401,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
401 | { | 401 | { |
402 | if (HasInventoryChanged) | 402 | if (HasInventoryChanged) |
403 | { | 403 | { |
404 | datastore.StorePrimInventory(UUID, TaskInventory); | 404 | lock (TaskInventory) |
405 | { | ||
406 | datastore.StorePrimInventory(UUID, TaskInventory.Values); | ||
407 | } | ||
405 | 408 | ||
406 | HasInventoryChanged = false; | 409 | HasInventoryChanged = false; |
407 | } | 410 | } |
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs index 6aeb808..28df4e7 100644 --- a/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs +++ b/OpenSim/Region/Storage/OpenSim.DataStore.MSSQL/MSSQLDataStore.cs | |||
@@ -754,7 +754,7 @@ namespace OpenSim.DataStore.MSSQL | |||
754 | } | 754 | } |
755 | 755 | ||
756 | // see IRegionDatastore | 756 | // see IRegionDatastore |
757 | public void StorePrimInventory(LLUUID primID, IDictionary<LLUUID, TaskInventoryItem> items) | 757 | public void StorePrimInventory(LLUUID primID, ICollection<TaskInventoryItem> items) |
758 | { | 758 | { |
759 | // No implementation yet | 759 | // No implementation yet |
760 | } | 760 | } |
diff --git a/OpenSim/Region/Storage/OpenSim.DataStore.NullStorage/NullDataStore.cs b/OpenSim/Region/Storage/OpenSim.DataStore.NullStorage/NullDataStore.cs index 8039e51..29d64a2 100644 --- a/OpenSim/Region/Storage/OpenSim.DataStore.NullStorage/NullDataStore.cs +++ b/OpenSim/Region/Storage/OpenSim.DataStore.NullStorage/NullDataStore.cs | |||
@@ -51,7 +51,7 @@ namespace OpenSim.DataStore.NullStorage | |||
51 | } | 51 | } |
52 | 52 | ||
53 | // see IRegionDatastore | 53 | // see IRegionDatastore |
54 | public void StorePrimInventory(LLUUID primID, IDictionary<LLUUID, TaskInventoryItem> items) | 54 | public void StorePrimInventory(LLUUID primID, ICollection<TaskInventoryItem> items) |
55 | { | 55 | { |
56 | } | 56 | } |
57 | 57 | ||