Script State Fix: Step 1

Add Engine=xxx attribute and check for it's presence. Ignore state data
written bby another engine
mysql-performance
Melanie 2009-12-21 06:29:23 +00:00
parent 37b07aa9ec
commit f6ef487413
1 changed files with 6 additions and 0 deletions

View File

@ -1266,6 +1266,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
XmlAttribute assetID = doc.CreateAttribute("", "Asset", "");
assetID.Value = instance.AssetID.ToString();
stateData.Attributes.Append(assetID);
XmlAttribute engineName = doc.CreateAttribute("", "Engine", "");
engineName.Value = ScriptEngineName;
stateData.Attributes.Append(engineName);
doc.AppendChild(stateData);
// Add <ScriptState>...</ScriptState>
@ -1388,6 +1391,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
XmlElement rootE = (XmlElement)rootL[0];
if (rootE.GetAttribute("Engine") != ScriptEngineName)
return;
if (rootE.GetAttribute("UUID") != itemID.ToString())
return;