Return a UUID.Zero if the asset fails to upload
parent
a5a1df68c2
commit
06fa038875
|
@ -144,7 +144,10 @@ namespace OpenSim.Services.AssetService
|
||||||
public string Store(AssetBase asset)
|
public string Store(AssetBase asset)
|
||||||
{
|
{
|
||||||
//m_log.DebugFormat("[ASSET SERVICE]: Store asset {0} {1}", asset.Name, asset.ID);
|
//m_log.DebugFormat("[ASSET SERVICE]: Store asset {0} {1}", asset.Name, asset.ID);
|
||||||
m_Database.StoreAsset(asset);
|
if (!m_Database.StoreAsset(asset))
|
||||||
|
{
|
||||||
|
return UUID.Zero.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
return asset.ID;
|
return asset.ID;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue