Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Asset Trash

Khamon Fate
fategardens.net
Join date: 21 Nov 2003
Posts: 4,177
05-04-2006 20:08
If I delete an item from my inventory, and subsequentially empty the trash, and the result is that the item has no pointer to it (is not referenced by any other av's or prim's inventory), is the record purged from the asset database?
_____________________
Visit the Fate Gardens Website @ fategardens.net
Kelly Linden
Linden Developer
Join date: 29 Mar 2004
Posts: 896
05-04-2006 22:05
It is ... eventually. Asset garbage collection is a seperate system process that takes a not-insignificant amount of time to run and is run on a more or less continuous basis.

Knowing when to delete an asset isn't always as easy as just tracking when the item is not in anyone's inventory. Object contents are only known on a per sim basis, except for the hourly sim state saves - and the asset could be referenced in any sim. Scripts may also access items, textures for example, by a hard coded asset id. It wouldn't be right to break the object if the only person with an actual inventory copy deleted it. Doing so could break every SuperFoo that person has sold which has a script that uses the hard coded asset id.

So, yes, if it is truely not referenced anywhere it will eventually get deleted. But not immediately.
_____________________
- Kelly Linden