diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLAssetData.cs | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLAssetData.cs b/OpenSim/Data/MSSQL/MSSQLAssetData.cs index 68f353d..b8753a1 100644 --- a/OpenSim/Data/MSSQL/MSSQLAssetData.cs +++ b/OpenSim/Data/MSSQL/MSSQLAssetData.cs | |||
@@ -212,24 +212,24 @@ namespace OpenSim.Data.MSSQL | |||
212 | } | 212 | } |
213 | } | 213 | } |
214 | 214 | ||
215 | 215 | // Commented out since currently unused - this probably should be called in FetchAsset() | |
216 | private void UpdateAccessTime(AssetBase asset) | 216 | // private void UpdateAccessTime(AssetBase asset) |
217 | { | 217 | // { |
218 | using (AutoClosingSqlCommand cmd = database.Query("UPDATE assets SET access_time = @access_time WHERE id=@id")) | 218 | // using (AutoClosingSqlCommand cmd = database.Query("UPDATE assets SET access_time = @access_time WHERE id=@id")) |
219 | { | 219 | // { |
220 | int now = (int)((System.DateTime.Now.Ticks - TicksToEpoch) / 10000000); | 220 | // int now = (int)((System.DateTime.Now.Ticks - TicksToEpoch) / 10000000); |
221 | cmd.Parameters.AddWithValue("@id", asset.FullID.ToString()); | 221 | // cmd.Parameters.AddWithValue("@id", asset.FullID.ToString()); |
222 | cmd.Parameters.AddWithValue("@access_time", now); | 222 | // cmd.Parameters.AddWithValue("@access_time", now); |
223 | try | 223 | // try |
224 | { | 224 | // { |
225 | cmd.ExecuteNonQuery(); | 225 | // cmd.ExecuteNonQuery(); |
226 | } | 226 | // } |
227 | catch (Exception e) | 227 | // catch (Exception e) |
228 | { | 228 | // { |
229 | m_log.Error(e.ToString()); | 229 | // m_log.Error(e.ToString()); |
230 | } | 230 | // } |
231 | } | 231 | // } |
232 | } | 232 | // } |
233 | 233 | ||
234 | /// <summary> | 234 | /// <summary> |
235 | /// Check if asset exist in database | 235 | /// Check if asset exist in database |