diff options
author | Tom Grimshaw | 2010-06-28 04:02:33 -0700 |
---|---|---|
committer | Tom Grimshaw | 2010-06-28 04:02:33 -0700 |
commit | a5a1df68c29b2d78279bcff60ce66fe97772d0c6 (patch) | |
tree | 587ac4ad0a775552c6276d795fec02f268faa01d /OpenSim/Data/MSSQL | |
parent | Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/ca... (diff) | |
download | opensim-SC_OLD-a5a1df68c29b2d78279bcff60ce66fe97772d0c6.zip opensim-SC_OLD-a5a1df68c29b2d78279bcff60ce66fe97772d0c6.tar.gz opensim-SC_OLD-a5a1df68c29b2d78279bcff60ce66fe97772d0c6.tar.bz2 opensim-SC_OLD-a5a1df68c29b2d78279bcff60ce66fe97772d0c6.tar.xz |
Provide the interface for StoreAsset to report success or failure
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLAssetData.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLAssetData.cs b/OpenSim/Data/MSSQL/MSSQLAssetData.cs index c7488d8..c882555 100644 --- a/OpenSim/Data/MSSQL/MSSQLAssetData.cs +++ b/OpenSim/Data/MSSQL/MSSQLAssetData.cs | |||
@@ -143,7 +143,7 @@ namespace OpenSim.Data.MSSQL | |||
143 | /// Create asset in m_database | 143 | /// Create asset in m_database |
144 | /// </summary> | 144 | /// </summary> |
145 | /// <param name="asset">the asset</param> | 145 | /// <param name="asset">the asset</param> |
146 | override public void StoreAsset(AssetBase asset) | 146 | override public bool StoreAsset(AssetBase asset) |
147 | { | 147 | { |
148 | 148 | ||
149 | string sql = | 149 | string sql = |
@@ -192,10 +192,12 @@ namespace OpenSim.Data.MSSQL | |||
192 | try | 192 | try |
193 | { | 193 | { |
194 | command.ExecuteNonQuery(); | 194 | command.ExecuteNonQuery(); |
195 | return true; | ||
195 | } | 196 | } |
196 | catch(Exception e) | 197 | catch(Exception e) |
197 | { | 198 | { |
198 | m_log.Error("[ASSET DB]: Error storing item :" + e.Message); | 199 | m_log.Error("[ASSET DB]: Error storing item :" + e.Message); |
200 | return false; | ||
199 | } | 201 | } |
200 | } | 202 | } |
201 | } | 203 | } |