diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLAssetData.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Data/MySQL/MySQLAssetData.cs b/OpenSim/Data/MySQL/MySQLAssetData.cs index cf80b3d..21dd5aa 100644 --- a/OpenSim/Data/MySQL/MySQLAssetData.cs +++ b/OpenSim/Data/MySQL/MySQLAssetData.cs | |||
@@ -155,7 +155,7 @@ namespace OpenSim.Data.MySQL | |||
155 | /// </summary> | 155 | /// </summary> |
156 | /// <param name="asset">Asset UUID to create</param> | 156 | /// <param name="asset">Asset UUID to create</param> |
157 | /// <remarks>On failure : Throw an exception and attempt to reconnect to database</remarks> | 157 | /// <remarks>On failure : Throw an exception and attempt to reconnect to database</remarks> |
158 | override public void StoreAsset(AssetBase asset) | 158 | override public bool StoreAsset(AssetBase asset) |
159 | { | 159 | { |
160 | lock (m_dbLock) | 160 | lock (m_dbLock) |
161 | { | 161 | { |
@@ -205,12 +205,14 @@ namespace OpenSim.Data.MySQL | |||
205 | cmd.Parameters.AddWithValue("?asset_flags", (int)asset.Flags); | 205 | cmd.Parameters.AddWithValue("?asset_flags", (int)asset.Flags); |
206 | cmd.Parameters.AddWithValue("?data", asset.Data); | 206 | cmd.Parameters.AddWithValue("?data", asset.Data); |
207 | cmd.ExecuteNonQuery(); | 207 | cmd.ExecuteNonQuery(); |
208 | return true; | ||
208 | } | 209 | } |
209 | } | 210 | } |
210 | catch (Exception e) | 211 | catch (Exception e) |
211 | { | 212 | { |
212 | m_log.ErrorFormat("[ASSET DB]: MySQL failure creating asset {0} with name \"{1}\". Error: {2}", | 213 | m_log.ErrorFormat("[ASSET DB]: MySQL failure creating asset {0} with name \"{1}\". Error: {2}", |
213 | asset.FullID, asset.Name, e.Message); | 214 | asset.FullID, asset.Name, e.Message); |
215 | return false; | ||
214 | } | 216 | } |
215 | } | 217 | } |
216 | } | 218 | } |
@@ -374,4 +376,4 @@ namespace OpenSim.Data.MySQL | |||
374 | 376 | ||
375 | #endregion | 377 | #endregion |
376 | } | 378 | } |
377 | } \ No newline at end of file | 379 | } |