mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Attachment persistence (Mantis #1711)
Change user server to handle attachment assets record properly. Ensure that attachments are not re-rezzed on region crossing. Persistence will NOT WORK with earliser UGAI!! Change region server to match.
This commit is contained in:
@@ -892,37 +892,6 @@ namespace OpenSim.Data.MSSQL
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// add an attachement to an avatar
|
||||
/// </summary>
|
||||
/// <param name="user">the avatar UUID</param>
|
||||
/// <param name="item">the item UUID</param>
|
||||
override public void AddAttachment(LLUUID user, LLUUID item)
|
||||
{
|
||||
// TBI?
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Remove an attachement from an avatar
|
||||
/// </summary>
|
||||
/// <param name="user">the avatar UUID</param>
|
||||
/// <param name="item">the item UUID</param>
|
||||
override public void RemoveAttachment(LLUUID user, LLUUID item)
|
||||
{
|
||||
// TBI?
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// get (fetch?) all attached item to an avatar
|
||||
/// </summary>
|
||||
/// <param name="user">the avatar UUID</param>
|
||||
/// <returns>List of attached item</returns>
|
||||
/// <remarks>return an empty list</remarks>
|
||||
override public List<LLUUID> GetAttachments(LLUUID user)
|
||||
{
|
||||
return new List<LLUUID>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Database provider name
|
||||
/// </summary>
|
||||
@@ -948,5 +917,9 @@ namespace OpenSim.Data.MSSQL
|
||||
public void runQuery(string query)
|
||||
{
|
||||
}
|
||||
|
||||
override public void ResetAttachments(LLUUID userID)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -778,36 +778,6 @@ namespace OpenSim.Data.MySQL
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds an attachment item to a user
|
||||
/// </summary>
|
||||
/// <param name="user">the user UUID</param>
|
||||
/// <param name="item">the item UUID</param>
|
||||
override public void AddAttachment(LLUUID user, LLUUID item)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes an attachment from a user
|
||||
/// </summary>
|
||||
/// <param name="user">the user UUID</param>
|
||||
/// <param name="item">the item UUID</param>
|
||||
override public void RemoveAttachment(LLUUID user, LLUUID item)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get the list of item attached to a user
|
||||
/// </summary>
|
||||
/// <param name="user">the user UUID</param>
|
||||
/// <returns>UUID list of attached item</returns>
|
||||
override public List<LLUUID> GetAttachments(LLUUID user)
|
||||
{
|
||||
return new List<LLUUID>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Database provider name
|
||||
/// </summary>
|
||||
@@ -845,5 +815,14 @@ namespace OpenSim.Data.MySQL
|
||||
{
|
||||
database.writeAttachments(agentID, data);
|
||||
}
|
||||
|
||||
override public void ResetAttachments(LLUUID userID)
|
||||
{
|
||||
MySqlCommand cmd = (MySqlCommand) (database.Connection.CreateCommand());
|
||||
cmd.CommandText = "update avatarattachments set asset = '00000000-0000-0000-0000-000000000000' where UUID = ?uuid";
|
||||
cmd.Parameters.AddWithValue("?uuid", userID.ToString());
|
||||
|
||||
cmd.ExecuteNonQuery();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -303,19 +303,8 @@ namespace OpenSim.Data.NHibernate
|
||||
}
|
||||
}
|
||||
|
||||
override public void AddAttachment(LLUUID user, LLUUID item)
|
||||
public override void ResetAttachments(LLUUID userID)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
override public void RemoveAttachment(LLUUID user, LLUUID item)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
override public List<LLUUID> GetAttachments(LLUUID user)
|
||||
{
|
||||
return new List<LLUUID>();
|
||||
}
|
||||
|
||||
public override string Name {
|
||||
|
||||
@@ -582,39 +582,6 @@ namespace OpenSim.Data.SQLite
|
||||
aplist[user] = appearance;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Add an attachment item to an avatar
|
||||
/// </summary>
|
||||
/// <param name="user">the user UUID</param>
|
||||
/// <param name="item">the item UUID</param>
|
||||
/// <remarks>DO NOTHING ?</remarks>
|
||||
override public void AddAttachment(LLUUID user, LLUUID item)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Remove an attachement item from an avatar
|
||||
/// </summary>
|
||||
/// <param name="user">the user UUID</param>
|
||||
/// <param name="item">the item UUID</param>
|
||||
/// <remarks>DO NOTHING ?</remarks>
|
||||
override public void RemoveAttachment(LLUUID user, LLUUID item)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get list of attached item
|
||||
/// </summary>
|
||||
/// <param name="user">the user UUID</param>
|
||||
/// <returns>List of attached item</returns>
|
||||
/// <remarks>DO NOTHING ?</remarks>
|
||||
override public List<LLUUID> GetAttachments(LLUUID user)
|
||||
{
|
||||
return new List<LLUUID>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the name of the storage provider
|
||||
/// </summary>
|
||||
@@ -1040,5 +1007,9 @@ namespace OpenSim.Data.SQLite
|
||||
|
||||
// return true;
|
||||
}
|
||||
|
||||
override public void ResetAttachments(LLUUID userID)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,9 +72,7 @@ namespace OpenSim.Data
|
||||
// aplist[user] = appearance;
|
||||
// m_log.Info("[APPEARANCE] Setting appearance for " + user.ToString() + appearance.ToString());
|
||||
// }
|
||||
public abstract void AddAttachment(LLUUID user, LLUUID item);
|
||||
public abstract void RemoveAttachment(LLUUID user, LLUUID item);
|
||||
public abstract List<LLUUID> GetAttachments(LLUUID user);
|
||||
public abstract void ResetAttachments(LLUUID userID);
|
||||
|
||||
public abstract string Version {get;}
|
||||
public abstract string Name {get;}
|
||||
|
||||
Reference in New Issue
Block a user