diff options
author | Charles Krinke | 2008-02-02 16:43:57 +0000 |
---|---|---|
committer | Charles Krinke | 2008-02-02 16:43:57 +0000 |
commit | 6a1d9e8da13ed09fa8334db8763854c908742587 (patch) | |
tree | 75f0786187bd9def08256caeb465e98aa46e2e9b /OpenSim | |
parent | * Fixed llSetTextureAnim to respect rate and Length and Start (diff) | |
download | opensim-SC-6a1d9e8da13ed09fa8334db8763854c908742587.zip opensim-SC-6a1d9e8da13ed09fa8334db8763854c908742587.tar.gz opensim-SC-6a1d9e8da13ed09fa8334db8763854c908742587.tar.bz2 opensim-SC-6a1d9e8da13ed09fa8334db8763854c908742587.tar.xz |
Thank you very much daTwitch for your first contribution to the C# simulator.
This is the beginnings of support for storage of region owner in the MySQLManager
table and the use of "owner_uuid".
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Data.MySQL/MySQLManager.cs | 41 | ||||
-rw-r--r-- | OpenSim/Grid/GridServer/GridManager.cs | 13 | ||||
-rw-r--r-- | OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 17 |
3 files changed, 65 insertions, 6 deletions
diff --git a/OpenSim/Framework/Data.MySQL/MySQLManager.cs b/OpenSim/Framework/Data.MySQL/MySQLManager.cs index 15ccf5f..eb94cbd 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLManager.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLManager.cs | |||
@@ -331,6 +331,20 @@ namespace OpenSim.Framework.Data.MySQL | |||
331 | { | 331 | { |
332 | retval.regionMapTextureID = LLUUID.Zero; | 332 | retval.regionMapTextureID = LLUUID.Zero; |
333 | } | 333 | } |
334 | |||
335 | // Added by daTwitch | ||
336 | // part of an initial brutish effort to provide accurate information (as per the xml region spec) | ||
337 | // wrt the ownership of a given region | ||
338 | // the (very bad) assumption is that this value is being read and handled inconsistently or | ||
339 | // not at all. Current strategy is to put the code in place to support the validity of this information | ||
340 | // and to roll forward debugging any issues from that point | ||
341 | // | ||
342 | // this particular section of the mod attempts to supply a value from the region table to the caller of 'readSimRow()' | ||
343 | // for the UUID of the region's owner (master avatar) | ||
344 | // | ||
345 | retval.owner_uuid = (string) reader["owner_uuid"]; | ||
346 | // | ||
347 | // end of daTwitch's mods to this file | ||
334 | } | 348 | } |
335 | else | 349 | else |
336 | { | 350 | { |
@@ -625,18 +639,32 @@ namespace OpenSim.Framework.Data.MySQL | |||
625 | sql += "regions (regionHandle, regionName, uuid, regionRecvKey, regionSecret, regionSendKey, regionDataURI, "; | 639 | sql += "regions (regionHandle, regionName, uuid, regionRecvKey, regionSecret, regionSendKey, regionDataURI, "; |
626 | sql += | 640 | sql += |
627 | "serverIP, serverPort, serverURI, locX, locY, locZ, eastOverrideHandle, westOverrideHandle, southOverrideHandle, northOverrideHandle, regionAssetURI, regionAssetRecvKey, "; | 641 | "serverIP, serverPort, serverURI, locX, locY, locZ, eastOverrideHandle, westOverrideHandle, southOverrideHandle, northOverrideHandle, regionAssetURI, regionAssetRecvKey, "; |
642 | |||
643 | // Added by daTwitch | ||
644 | // part of an initial brutish effort to provide accurate information (as per the xml region spec) | ||
645 | // wrt the ownership of a given region | ||
646 | // the (very bad) assumption is that this value is being read and handled inconsistently or | ||
647 | // not at all. Current strategy is to put the code in place to support the validity of this information | ||
648 | // and to roll forward debugging any issues from that point | ||
649 | // | ||
650 | // this particular section of the mod attempts to implement the commit of a supplied value | ||
651 | // server for the UUID of the region's owner (master avatar). It consists of the addition of the column and value to the relevant sql, | ||
652 | // as well as the related parameterization | ||
628 | sql += | 653 | sql += |
629 | "regionAssetSendKey, regionUserURI, regionUserRecvKey, regionUserSendKey, regionMapTexture, serverHttpPort, serverRemotingPort) VALUES "; | 654 | "regionAssetSendKey, regionUserURI, regionUserRecvKey, regionUserSendKey, regionMapTexture, serverHttpPort, serverRemotingPort, owner_uuid) VALUES "; |
655 | // daTwitch | ||
656 | |||
630 | 657 | ||
631 | sql += "(?regionHandle, ?regionName, ?uuid, ?regionRecvKey, ?regionSecret, ?regionSendKey, ?regionDataURI, "; | 658 | sql += "(?regionHandle, ?regionName, ?uuid, ?regionRecvKey, ?regionSecret, ?regionSendKey, ?regionDataURI, "; |
632 | sql += | 659 | sql += |
633 | "?serverIP, ?serverPort, ?serverURI, ?locX, ?locY, ?locZ, ?eastOverrideHandle, ?westOverrideHandle, ?southOverrideHandle, ?northOverrideHandle, ?regionAssetURI, ?regionAssetRecvKey, "; | 660 | "?serverIP, ?serverPort, ?serverURI, ?locX, ?locY, ?locZ, ?eastOverrideHandle, ?westOverrideHandle, ?southOverrideHandle, ?northOverrideHandle, ?regionAssetURI, ?regionAssetRecvKey, "; |
634 | sql += | 661 | sql += |
635 | "?regionAssetSendKey, ?regionUserURI, ?regionUserRecvKey, ?regionUserSendKey, ?regionMapTexture, ?serverHttpPort, ?serverRemotingPort)"; | 662 | "?regionAssetSendKey, ?regionUserURI, ?regionUserRecvKey, ?regionUserSendKey, ?regionMapTexture, ?serverHttpPort, ?serverRemotingPort, ?owner_uuid)"; |
636 | 663 | // daTwitch | |
637 | if (GRID_ONLY_UPDATE_NECESSARY_DATA) | 664 | if (GRID_ONLY_UPDATE_NECESSARY_DATA) |
638 | { | 665 | { |
639 | sql += "ON DUPLICATE KEY UPDATE serverIP = ?serverIP, serverPort = ?serverPort, serverURI = ?serverURI;"; | 666 | sql += "ON DUPLICATE KEY UPDATE serverIP = ?serverIP, serverPort = ?serverPort, serverURI = ?serverURI, owner_uuid - ?owner_uuid;"; |
667 | // daTwitch | ||
640 | } | 668 | } |
641 | else | 669 | else |
642 | { | 670 | { |
@@ -671,6 +699,9 @@ namespace OpenSim.Framework.Data.MySQL | |||
671 | parameters["?regionMapTexture"] = regiondata.regionMapTextureID.ToString(); | 699 | parameters["?regionMapTexture"] = regiondata.regionMapTextureID.ToString(); |
672 | parameters["?serverHttpPort"] = regiondata.httpPort.ToString(); | 700 | parameters["?serverHttpPort"] = regiondata.httpPort.ToString(); |
673 | parameters["?serverRemotingPort"] = regiondata.remotingPort.ToString(); | 701 | parameters["?serverRemotingPort"] = regiondata.remotingPort.ToString(); |
702 | parameters["?owner_uuid"] = regiondata.owner_uuid.ToString(); | ||
703 | // daTwitch | ||
704 | |||
674 | bool returnval = false; | 705 | bool returnval = false; |
675 | 706 | ||
676 | try | 707 | try |
@@ -694,4 +725,4 @@ namespace OpenSim.Framework.Data.MySQL | |||
694 | return returnval; | 725 | return returnval; |
695 | } | 726 | } |
696 | } | 727 | } |
697 | } \ No newline at end of file | 728 | } |
diff --git a/OpenSim/Grid/GridServer/GridManager.cs b/OpenSim/Grid/GridServer/GridManager.cs index b4b91bb..541e06e 100644 --- a/OpenSim/Grid/GridServer/GridManager.cs +++ b/OpenSim/Grid/GridServer/GridManager.cs | |||
@@ -282,6 +282,19 @@ namespace OpenSim.Grid.GridServer | |||
282 | TheSim.regionLocZ = 0; | 282 | TheSim.regionLocZ = 0; |
283 | TheSim.regionMapTextureID = new LLUUID((string)requestData["map-image-id"]); | 283 | TheSim.regionMapTextureID = new LLUUID((string)requestData["map-image-id"]); |
284 | 284 | ||
285 | // Added by daTwitch | ||
286 | // part of an initial brutish effort to provide accurate information (as per the xml region spec) | ||
287 | // wrt the ownership of a given region | ||
288 | // the (very bad) assumption is that this value is being read and handled inconsistently or | ||
289 | // not at all. Current strategy is to put the code in place to support the validity of this information | ||
290 | // and to roll forward debugging any issues from that point | ||
291 | // | ||
292 | // this particular section of the mod attempts to receive a value from the region's xml file by way of | ||
293 | // OSG1GridServices for the region's owner | ||
294 | // | ||
295 | TheSim.owner_uuid = (string)requestData["master_avatar_uuid"]; | ||
296 | // end of daTwitch's mods to this file | ||
297 | |||
285 | try | 298 | try |
286 | { | 299 | { |
287 | TheSim.regionRecvKey = (string)requestData["recvkey"]; | 300 | TheSim.regionRecvKey = (string)requestData["recvkey"]; |
diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 8429d00..1576bf3 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | |||
@@ -110,6 +110,21 @@ namespace OpenSim.Region.Communications.OGS1 | |||
110 | GridParams["remoting_port"] = NetworkServersInfo.RemotingListenerPort.ToString(); | 110 | GridParams["remoting_port"] = NetworkServersInfo.RemotingListenerPort.ToString(); |
111 | GridParams["map-image-id"] = regionInfo.EstateSettings.terrainImageID.ToString(); | 111 | GridParams["map-image-id"] = regionInfo.EstateSettings.terrainImageID.ToString(); |
112 | 112 | ||
113 | |||
114 | // Added by daTwitch | ||
115 | // part of an initial brutish effort to provide accurate information (as per the xml region spec) | ||
116 | // wrt the ownership of a given region | ||
117 | // the (very bad) assumption is that this value is being read and handled inconsistently or | ||
118 | // not at all. Current strategy is to put the code in place to support the validity of this information | ||
119 | // and to roll forward debugging any issues from that point | ||
120 | // | ||
121 | // this particular section of the mod attempts to supply a value from the region's xml file to the grid | ||
122 | // server for the UUID of the region's owner (master avatar) | ||
123 | // | ||
124 | GridParams["master_avatar_uuid"] = regionInfo.MasterAvatarAssignedUUID.ToString(); | ||
125 | // end of daTwitch's addition to this file | ||
126 | |||
127 | |||
113 | // Package into an XMLRPC Request | 128 | // Package into an XMLRPC Request |
114 | ArrayList SendParams = new ArrayList(); | 129 | ArrayList SendParams = new ArrayList(); |
115 | SendParams.Add(GridParams); | 130 | SendParams.Add(GridParams); |
@@ -1297,4 +1312,4 @@ namespace OpenSim.Region.Communications.OGS1 | |||
1297 | } | 1312 | } |
1298 | } | 1313 | } |
1299 | 1314 | ||
1300 | } \ No newline at end of file | 1315 | } |