Use the database mthod directly to delete items in a single sql swoop
parent
b1790ba56e
commit
4708083434
|
@ -342,17 +342,7 @@ namespace OpenSim.Services.InventoryService
|
||||||
m_Database.DeleteFolders("folderID", x.folderID.ToString());
|
m_Database.DeleteFolders("folderID", x.folderID.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
XInventoryItem[] items = m_Database.GetItems(
|
m_Database.DeleteItems("parentFolderID", folder.id.ToString());
|
||||||
new string[] { "parentFolderID" },
|
|
||||||
new string[] { folder.ID.ToString() });
|
|
||||||
|
|
||||||
List<UUID> itemlist = new List<UUID>();
|
|
||||||
foreach (XInventoryItem i in items)
|
|
||||||
{
|
|
||||||
itemlist.Add(i.inventoryID);
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteItems(folder.Owner, itemlist);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue