aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache/AssetTransactionManager.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Communications/Cache/AssetTransactionManager.cs20
1 files changed, 18 insertions, 2 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AssetTransactionManager.cs b/OpenSim/Framework/Communications/Cache/AssetTransactionManager.cs
index c9c9541..b458b18 100644
--- a/OpenSim/Framework/Communications/Cache/AssetTransactionManager.cs
+++ b/OpenSim/Framework/Communications/Cache/AssetTransactionManager.cs
@@ -25,13 +25,19 @@
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26* 26*
27*/ 27*/
28
29using System;
28using System.Collections.Generic; 30using System.Collections.Generic;
31
29using libsecondlife; 32using libsecondlife;
30 33
31namespace OpenSim.Framework.Communications.Cache 34namespace OpenSim.Framework.Communications.Cache
32{ 35{
33 public class AssetTransactionManager 36 public class AssetTransactionManager
34 { 37 {
38 private static readonly log4net.ILog m_log
39 = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
40
35 // Fields 41 // Fields
36 public CommunicationsManager CommsManager; 42 public CommunicationsManager CommsManager;
37 43
@@ -92,7 +98,17 @@ namespace OpenSim.Framework.Communications.Cache
92 AgentAssetTransactions.AssetXferUploader uploader = transactions.RequestXferUploader(transaction); 98 AgentAssetTransactions.AssetXferUploader uploader = transactions.RequestXferUploader(transaction);
93 if (uploader != null) 99 if (uploader != null)
94 { 100 {
95 uploader.Initialise(remoteClient, assetID, transaction, type, data, storeLocal, tempFile); 101 // Upload has already compelted uploading...
102 if (uploader.Initialise(remoteClient, assetID, transaction, type, data, storeLocal, tempFile))
103 {
104 lock (transactions.XferUploaders)
105 {
106 // XXX Weak ass way of doing this by directly manipulating this public dictionary, purely temporary
107 transactions.XferUploaders.Remove(uploader.TransactionID);
108
109 m_log.Info(String.Format("[ASSET TRANSACTIONS] Current uploaders: {0}", transactions.XferUploaders.Count));
110 }
111 }
96 } 112 }
97 } 113 }
98 } 114 }
@@ -106,4 +122,4 @@ namespace OpenSim.Framework.Communications.Cache
106 } 122 }
107 } 123 }
108 } 124 }
109} \ No newline at end of file 125}