Remove backup optimization that was causing prim contents to poof

avinationmerge
Melanie 2011-11-05 23:31:20 +01:00
parent 89a1d7c37c
commit 534560df8c
1 changed files with 8 additions and 3 deletions

View File

@ -1122,14 +1122,19 @@ namespace OpenSim.Region.Framework.Scenes
/// <param name="datastore"></param>
public void ProcessInventoryBackup(ISimulationDataService datastore)
{
if (HasInventoryChanged)
{
// Removed this because linking will cause an immediate delete of the new
// child prim from the database and the subsequent storing of the prim sees
// the inventory of it as unchanged and doesn't store it at all. The overhead
// of storing prim inventory needlessly is much less than the aggravation
// of prim inventory loss.
// if (HasInventoryChanged)
// {
Items.LockItemsForRead(true);
datastore.StorePrimInventory(m_part.UUID, Items.Values);
Items.LockItemsForRead(false);
HasInventoryChanged = false;
}
// }
}
public class InventoryStringBuilder