aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorTom Grimshaw2010-06-28 07:09:05 -0700
committerTom Grimshaw2010-06-28 07:09:05 -0700
commit06fa0388750b939ede9e3d7783e41a574e101397 (patch)
tree18aafd078de282b61b249465583c20c18074e5ce
parentProvide the interface for StoreAsset to report success or failure (diff)
downloadopensim-SC_OLD-06fa0388750b939ede9e3d7783e41a574e101397.zip
opensim-SC_OLD-06fa0388750b939ede9e3d7783e41a574e101397.tar.gz
opensim-SC_OLD-06fa0388750b939ede9e3d7783e41a574e101397.tar.bz2
opensim-SC_OLD-06fa0388750b939ede9e3d7783e41a574e101397.tar.xz
Return a UUID.Zero if the asset fails to upload
-rw-r--r--OpenSim/Services/AssetService/AssetService.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Services/AssetService/AssetService.cs b/OpenSim/Services/AssetService/AssetService.cs
index 470a4dd..3122382 100644
--- a/OpenSim/Services/AssetService/AssetService.cs
+++ b/OpenSim/Services/AssetService/AssetService.cs
@@ -144,7 +144,10 @@ namespace OpenSim.Services.AssetService
144 public string Store(AssetBase asset) 144 public string Store(AssetBase asset)
145 { 145 {
146 //m_log.DebugFormat("[ASSET SERVICE]: Store asset {0} {1}", asset.Name, asset.ID); 146 //m_log.DebugFormat("[ASSET SERVICE]: Store asset {0} {1}", asset.Name, asset.ID);
147 m_Database.StoreAsset(asset); 147 if (!m_Database.StoreAsset(asset))
148 {
149 return UUID.Zero.ToString();
150 }
148 151
149 return asset.ID; 152 return asset.ID;
150 } 153 }