diff options
author | Melanie Thielker | 2010-06-21 17:06:05 +0200 |
---|---|---|
committer | Melanie | 2010-10-13 18:40:33 +0100 |
commit | 01728fb19e1c23e878197753cb788f94883e5838 (patch) | |
tree | 2a35efd434d950c1a2340d92addc4e7f1e767f1c /OpenSim/Data/MySQL/MySQLPresenceData.cs | |
parent | Remove carriage returns from OpenSimDefaults.ini. Correct one typo. Change (diff) | |
download | opensim-SC-01728fb19e1c23e878197753cb788f94883e5838.zip opensim-SC-01728fb19e1c23e878197753cb788f94883e5838.tar.gz opensim-SC-01728fb19e1c23e878197753cb788f94883e5838.tar.bz2 opensim-SC-01728fb19e1c23e878197753cb788f94883e5838.tar.xz |
Ensure no UUID.Zero region ID is ever written to presence. Add a Migration
to add a LastSeen field of type "Timestamp" to Presence for MySQL
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLPresenceData.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Data/MySQL/MySQLPresenceData.cs b/OpenSim/Data/MySQL/MySQLPresenceData.cs index 71caa1a..7b0016b 100644 --- a/OpenSim/Data/MySQL/MySQLPresenceData.cs +++ b/OpenSim/Data/MySQL/MySQLPresenceData.cs | |||
@@ -78,6 +78,9 @@ namespace OpenSim.Data.MySQL | |||
78 | if (pd.Length == 0) | 78 | if (pd.Length == 0) |
79 | return false; | 79 | return false; |
80 | 80 | ||
81 | if (regionID == UUID.Zero) | ||
82 | return; | ||
83 | |||
81 | MySqlCommand cmd = new MySqlCommand(); | 84 | MySqlCommand cmd = new MySqlCommand(); |
82 | 85 | ||
83 | cmd.CommandText = String.Format("update {0} set RegionID=?RegionID where `SessionID`=?SessionID", m_Realm); | 86 | cmd.CommandText = String.Format("update {0} set RegionID=?RegionID where `SessionID`=?SessionID", m_Realm); |
@@ -90,6 +93,5 @@ namespace OpenSim.Data.MySQL | |||
90 | 93 | ||
91 | return true; | 94 | return true; |
92 | } | 95 | } |
93 | |||
94 | } | 96 | } |
95 | } | 97 | } |