* Comment out unused access time method in MSSQL
* This should probably be being called in FetchAsset() instead as for all the other databases, but I lack the means to test MSSQL0.6.1-post-fixes
parent
915593bfbc
commit
c0cd681608
|
@ -212,24 +212,24 @@ namespace OpenSim.Data.MSSQL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Commented out since currently unused - this probably should be called in FetchAsset()
|
||||||
private void UpdateAccessTime(AssetBase asset)
|
// private void UpdateAccessTime(AssetBase asset)
|
||||||
{
|
// {
|
||||||
using (AutoClosingSqlCommand cmd = database.Query("UPDATE assets SET access_time = @access_time WHERE id=@id"))
|
// using (AutoClosingSqlCommand cmd = database.Query("UPDATE assets SET access_time = @access_time WHERE id=@id"))
|
||||||
{
|
// {
|
||||||
int now = (int)((System.DateTime.Now.Ticks - TicksToEpoch) / 10000000);
|
// int now = (int)((System.DateTime.Now.Ticks - TicksToEpoch) / 10000000);
|
||||||
cmd.Parameters.AddWithValue("@id", asset.FullID.ToString());
|
// cmd.Parameters.AddWithValue("@id", asset.FullID.ToString());
|
||||||
cmd.Parameters.AddWithValue("@access_time", now);
|
// cmd.Parameters.AddWithValue("@access_time", now);
|
||||||
try
|
// try
|
||||||
{
|
// {
|
||||||
cmd.ExecuteNonQuery();
|
// cmd.ExecuteNonQuery();
|
||||||
}
|
// }
|
||||||
catch (Exception e)
|
// catch (Exception e)
|
||||||
{
|
// {
|
||||||
m_log.Error(e.ToString());
|
// m_log.Error(e.ToString());
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Check if asset exist in database
|
/// Check if asset exist in database
|
||||||
|
|
|
@ -3378,7 +3378,6 @@ if (m_shape != null) {
|
||||||
|
|
||||||
#endregion Public Methods
|
#endregion Public Methods
|
||||||
|
|
||||||
|
|
||||||
private byte GetAttachPointEncoded()
|
private byte GetAttachPointEncoded()
|
||||||
{
|
{
|
||||||
return (byte)((AttachmentPoint % 16) * 16 + (AttachmentPoint / 16));
|
return (byte)((AttachmentPoint % 16) * 16 + (AttachmentPoint / 16));
|
||||||
|
|
Loading…
Reference in New Issue