diff options
author | Dan Lake | 2013-02-06 16:45:47 -0800 |
---|---|---|
committer | Dan Lake | 2013-02-06 16:45:47 -0800 |
commit | 7590ebc934477d0c410cae1bbc40664453d57001 (patch) | |
tree | abcb69bf2b26d23454a37af8609711376b6f1dee /OpenSim/Framework/DAMap.cs | |
parent | WebStats will now use actual logfile as specified in OpenSim.exe.config rathe... (diff) | |
parent | minor: add method doc to DAMap.ValidateKey() (diff) | |
download | opensim-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.cs | 7 |
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 | } |