diff options
author | Tom Grimshaw | 2010-06-28 07:09:05 -0700 |
---|---|---|
committer | Tom Grimshaw | 2010-06-28 07:09:05 -0700 |
commit | 06fa0388750b939ede9e3d7783e41a574e101397 (patch) | |
tree | 18aafd078de282b61b249465583c20c18074e5ce | |
parent | Provide the interface for StoreAsset to report success or failure (diff) | |
download | opensim-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.cs | 5 |
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 | } |