Merge branch 'master' of ssh://opensimulator.org/var/git/opensim

This commit is contained in:
Mic Bowman
2013-02-06 17:32:57 -08:00
6 changed files with 43 additions and 13 deletions

View File

@@ -176,6 +176,10 @@ namespace OpenSim.Framework
}
}
/// <summary>
/// Validate the key used for storing separate data stores.
/// </summary>
/// <param name='key'></param>
private static void ValidateKey(string key)
{
if (key.Length < MIN_STORE_NAME_LENGTH)
@@ -196,7 +200,8 @@ namespace OpenSim.Framework
}
public void Add(KeyValuePair<string, OSDMap> kvp)
{
{
ValidateKey(kvp.Key);
lock (this)
m_map.Add(kvp.Key, kvp.Value);
}