Script State Fix: Step 1
Add Engine=xxx attribute and check for it's presence. Ignore state data written bby another enginemysql-performance
parent
37b07aa9ec
commit
f6ef487413
|
@ -1266,6 +1266,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
XmlAttribute assetID = doc.CreateAttribute("", "Asset", "");
|
XmlAttribute assetID = doc.CreateAttribute("", "Asset", "");
|
||||||
assetID.Value = instance.AssetID.ToString();
|
assetID.Value = instance.AssetID.ToString();
|
||||||
stateData.Attributes.Append(assetID);
|
stateData.Attributes.Append(assetID);
|
||||||
|
XmlAttribute engineName = doc.CreateAttribute("", "Engine", "");
|
||||||
|
engineName.Value = ScriptEngineName;
|
||||||
|
stateData.Attributes.Append(engineName);
|
||||||
doc.AppendChild(stateData);
|
doc.AppendChild(stateData);
|
||||||
|
|
||||||
// Add <ScriptState>...</ScriptState>
|
// Add <ScriptState>...</ScriptState>
|
||||||
|
@ -1388,6 +1391,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||||
|
|
||||||
XmlElement rootE = (XmlElement)rootL[0];
|
XmlElement rootE = (XmlElement)rootL[0];
|
||||||
|
|
||||||
|
if (rootE.GetAttribute("Engine") != ScriptEngineName)
|
||||||
|
return;
|
||||||
|
|
||||||
if (rootE.GetAttribute("UUID") != itemID.ToString())
|
if (rootE.GetAttribute("UUID") != itemID.ToString())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue