diff options
author | Justin Clark-Casey (justincc) | 2009-09-04 21:10:56 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2009-09-04 21:10:56 +0100 |
commit | 7ca61e01742b53033009f10c45e3ea0d0ef91315 (patch) | |
tree | 7b215e2e6d1b240262560665699e1fce83a83e5d /OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs | |
parent | If running tests manually, fail immediately on error (diff) | |
download | opensim-SC_OLD-7ca61e01742b53033009f10c45e3ea0d0ef91315.zip opensim-SC_OLD-7ca61e01742b53033009f10c45e3ea0d0ef91315.tar.gz opensim-SC_OLD-7ca61e01742b53033009f10c45e3ea0d0ef91315.tar.bz2 opensim-SC_OLD-7ca61e01742b53033009f10c45e3ea0d0ef91315.tar.xz |
Add ids to iar requests
Stop save iar test wrongly relying on thread pulsing (still disabled though)
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs index 12c9dcf..18728c6 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs | |||
@@ -60,6 +60,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
60 | protected UuidGatherer m_assetGatherer; | 60 | protected UuidGatherer m_assetGatherer; |
61 | 61 | ||
62 | /// <value> | 62 | /// <value> |
63 | /// ID of this request | ||
64 | /// </value> | ||
65 | protected Guid m_id; | ||
66 | |||
67 | /// <value> | ||
63 | /// Used to collect the uuids of the assets that we need to save into the archive | 68 | /// Used to collect the uuids of the assets that we need to save into the archive |
64 | /// </value> | 69 | /// </value> |
65 | protected Dictionary<UUID, int> m_assetUuids = new Dictionary<UUID, int>(); | 70 | protected Dictionary<UUID, int> m_assetUuids = new Dictionary<UUID, int>(); |
@@ -78,8 +83,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
78 | /// Constructor | 83 | /// Constructor |
79 | /// </summary> | 84 | /// </summary> |
80 | public InventoryArchiveWriteRequest( | 85 | public InventoryArchiveWriteRequest( |
81 | InventoryArchiverModule module, CachedUserInfo userInfo, string invPath, string savePath) | 86 | Guid id, InventoryArchiverModule module, CachedUserInfo userInfo, string invPath, string savePath) |
82 | : this( | 87 | : this( |
88 | id, | ||
83 | module, | 89 | module, |
84 | userInfo, | 90 | userInfo, |
85 | invPath, | 91 | invPath, |
@@ -91,8 +97,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
91 | /// Constructor | 97 | /// Constructor |
92 | /// </summary> | 98 | /// </summary> |
93 | public InventoryArchiveWriteRequest( | 99 | public InventoryArchiveWriteRequest( |
94 | InventoryArchiverModule module, CachedUserInfo userInfo, string invPath, Stream saveStream) | 100 | Guid id, InventoryArchiverModule module, CachedUserInfo userInfo, string invPath, Stream saveStream) |
95 | { | 101 | { |
102 | m_id = id; | ||
96 | m_module = module; | 103 | m_module = module; |
97 | m_userInfo = userInfo; | 104 | m_userInfo = userInfo; |
98 | m_invPath = invPath; | 105 | m_invPath = invPath; |
@@ -116,7 +123,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
116 | succeeded = false; | 123 | succeeded = false; |
117 | } | 124 | } |
118 | 125 | ||
119 | m_module.TriggerInventoryArchiveSaved(succeeded, m_userInfo, m_invPath, m_saveStream, reportedException); | 126 | m_module.TriggerInventoryArchiveSaved( |
127 | m_id, succeeded, m_userInfo, m_invPath, m_saveStream, reportedException); | ||
120 | } | 128 | } |
121 | 129 | ||
122 | protected void SaveInvItem(InventoryItemBase inventoryItem, string path) | 130 | protected void SaveInvItem(InventoryItemBase inventoryItem, string path) |
@@ -272,7 +280,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
272 | // We couldn't find the path indicated | 280 | // We couldn't find the path indicated |
273 | m_saveStream.Close(); | 281 | m_saveStream.Close(); |
274 | m_module.TriggerInventoryArchiveSaved( | 282 | m_module.TriggerInventoryArchiveSaved( |
275 | false, m_userInfo, m_invPath, m_saveStream, | 283 | m_id, false, m_userInfo, m_invPath, m_saveStream, |
276 | new Exception(string.Format("Could not find inventory entry at path {0}", m_invPath))); | 284 | new Exception(string.Format("Could not find inventory entry at path {0}", m_invPath))); |
277 | return; | 285 | return; |
278 | } | 286 | } |