aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/DAMap.cs
diff options
context:
space:
mode:
authorDan Lake2013-02-06 16:45:47 -0800
committerDan Lake2013-02-06 16:45:47 -0800
commit7590ebc934477d0c410cae1bbc40664453d57001 (patch)
treeabcb69bf2b26d23454a37af8609711376b6f1dee /OpenSim/Framework/DAMap.cs
parentWebStats will now use actual logfile as specified in OpenSim.exe.config rathe... (diff)
parentminor: add method doc to DAMap.ValidateKey() (diff)
downloadopensim-SC-7590ebc934477d0c410cae1bbc40664453d57001.zip
opensim-SC-7590ebc934477d0c410cae1bbc40664453d57001.tar.gz
opensim-SC-7590ebc934477d0c410cae1bbc40664453d57001.tar.bz2
opensim-SC-7590ebc934477d0c410cae1bbc40664453d57001.tar.xz
Merge branch 'master' of git://opensimulator.org/git/opensim
Diffstat (limited to 'OpenSim/Framework/DAMap.cs')
-rw-r--r--OpenSim/Framework/DAMap.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Framework/DAMap.cs b/OpenSim/Framework/DAMap.cs
index 291c8b8..24e0895 100644
--- a/OpenSim/Framework/DAMap.cs
+++ b/OpenSim/Framework/DAMap.cs
@@ -168,6 +168,10 @@ namespace OpenSim.Framework
168 } 168 }
169 } 169 }
170 170
171 /// <summary>
172 /// Validate the key used for storing separate data stores.
173 /// </summary>
174 /// <param name='key'></param>
171 private static void ValidateKey(string key) 175 private static void ValidateKey(string key)
172 { 176 {
173 if (key.Length < MIN_STORE_NAME_LENGTH) 177 if (key.Length < MIN_STORE_NAME_LENGTH)
@@ -188,7 +192,8 @@ namespace OpenSim.Framework
188 } 192 }
189 193
190 public void Add(KeyValuePair<string, OSDMap> kvp) 194 public void Add(KeyValuePair<string, OSDMap> kvp)
191 { 195 {
196 ValidateKey(kvp.Key);
192 lock (this) 197 lock (this)
193 m_map.Add(kvp.Key, kvp.Value); 198 m_map.Add(kvp.Key, kvp.Value);
194 } 199 }