diff options
author | Jeff Ames | 2008-02-20 18:38:20 +0000 |
---|---|---|
committer | Jeff Ames | 2008-02-20 18:38:20 +0000 |
commit | a8cfbbe963529728acbab4d9936cb89af380d1ac (patch) | |
tree | 16a72fba3d15556f6702127e7cfb98aa9fb9cf81 /OpenSim/Framework/Data.MySQL | |
parent | Fix exception when reading OpenSim.ini file. (diff) | |
download | opensim-SC-a8cfbbe963529728acbab4d9936cb89af380d1ac.zip opensim-SC-a8cfbbe963529728acbab4d9936cb89af380d1ac.tar.gz opensim-SC-a8cfbbe963529728acbab4d9936cb89af380d1ac.tar.bz2 opensim-SC-a8cfbbe963529728acbab4d9936cb89af380d1ac.tar.xz |
Minor cleanup.
Diffstat (limited to 'OpenSim/Framework/Data.MySQL')
-rw-r--r-- | OpenSim/Framework/Data.MySQL/MySQLAssetData.cs | 2 | ||||
-rw-r--r-- | OpenSim/Framework/Data.MySQL/MySQLManager.cs | 48 |
2 files changed, 20 insertions, 30 deletions
diff --git a/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs b/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs index 0dfe671..5c11e3e 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLAssetData.cs | |||
@@ -13,7 +13,7 @@ | |||
13 | * names of its contributors may be used to endorse or promote products | 13 | * names of its contributors may be used to endorse or promote products |
14 | * derived from this software without specific prior written permission. | 14 | * derived from this software without specific prior written permission. |
15 | * | 15 | * |
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS AS IS AND ANY | 16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY |
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | 17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | 18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | 19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY |
diff --git a/OpenSim/Framework/Data.MySQL/MySQLManager.cs b/OpenSim/Framework/Data.MySQL/MySQLManager.cs index 0ec976c..e8c42f3 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLManager.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLManager.cs | |||
@@ -344,17 +344,14 @@ namespace OpenSim.Framework.Data.MySQL | |||
344 | retval.regionMapTextureID = LLUUID.Zero; | 344 | retval.regionMapTextureID = LLUUID.Zero; |
345 | } | 345 | } |
346 | 346 | ||
347 | // Added by daTwitch | 347 | // part of an initial brutish effort to provide accurate information (as per the xml region spec) |
348 | // part of an initial brutish effort to provide accurate information (as per the xml region spec) | 348 | // wrt the ownership of a given region |
349 | // wrt the ownership of a given region | 349 | // the (very bad) assumption is that this value is being read and handled inconsistently or |
350 | // the (very bad) assumption is that this value is being read and handled inconsistently or | 350 | // not at all. Current strategy is to put the code in place to support the validity of this information |
351 | // not at all. Current strategy is to put the code in place to support the validity of this information | 351 | // and to roll forward debugging any issues from that point |
352 | // and to roll forward debugging any issues from that point | 352 | // |
353 | // | 353 | // this particular section of the mod attempts to supply a value from the region table to the caller of 'readSimRow()' |
354 | // this particular section of the mod attempts to supply a value from the region table to the caller of 'readSimRow()' | 354 | // for the UUID of the region's owner (master avatar) |
355 | // for the UUID of the region's owner (master avatar) | ||
356 | // | ||
357 | //retval.owner_uuid = (string) reader["owner_uuid"]; | ||
358 | try | 355 | try |
359 | { | 356 | { |
360 | retval.owner_uuid = new LLUUID((string)reader["owner_uuid"]); | 357 | retval.owner_uuid = new LLUUID((string)reader["owner_uuid"]); |
@@ -363,8 +360,6 @@ namespace OpenSim.Framework.Data.MySQL | |||
363 | { | 360 | { |
364 | retval.owner_uuid = LLUUID.Zero; | 361 | retval.owner_uuid = LLUUID.Zero; |
365 | } | 362 | } |
366 | // | ||
367 | // end of daTwitch's mods to this file | ||
368 | } | 363 | } |
369 | else | 364 | else |
370 | { | 365 | { |
@@ -660,31 +655,27 @@ namespace OpenSim.Framework.Data.MySQL | |||
660 | sql += | 655 | sql += |
661 | "serverIP, serverPort, serverURI, locX, locY, locZ, eastOverrideHandle, westOverrideHandle, southOverrideHandle, northOverrideHandle, regionAssetURI, regionAssetRecvKey, "; | 656 | "serverIP, serverPort, serverURI, locX, locY, locZ, eastOverrideHandle, westOverrideHandle, southOverrideHandle, northOverrideHandle, regionAssetURI, regionAssetRecvKey, "; |
662 | 657 | ||
663 | // Added by daTwitch | 658 | // part of an initial brutish effort to provide accurate information (as per the xml region spec) |
664 | // part of an initial brutish effort to provide accurate information (as per the xml region spec) | 659 | // wrt the ownership of a given region |
665 | // wrt the ownership of a given region | 660 | // the (very bad) assumption is that this value is being read and handled inconsistently or |
666 | // the (very bad) assumption is that this value is being read and handled inconsistently or | 661 | // not at all. Current strategy is to put the code in place to support the validity of this information |
667 | // not at all. Current strategy is to put the code in place to support the validity of this information | 662 | // and to roll forward debugging any issues from that point |
668 | // and to roll forward debugging any issues from that point | 663 | // |
669 | // | 664 | // this particular section of the mod attempts to implement the commit of a supplied value |
670 | // this particular section of the mod attempts to implement the commit of a supplied value | 665 | // 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, |
671 | // 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, | 666 | // as well as the related parameterization |
672 | // as well as the related parameterization | ||
673 | sql += | 667 | sql += |
674 | "regionAssetSendKey, regionUserURI, regionUserRecvKey, regionUserSendKey, regionMapTexture, serverHttpPort, serverRemotingPort, owner_uuid) VALUES "; | 668 | "regionAssetSendKey, regionUserURI, regionUserRecvKey, regionUserSendKey, regionMapTexture, serverHttpPort, serverRemotingPort, owner_uuid) VALUES "; |
675 | // daTwitch | ||
676 | |||
677 | 669 | ||
678 | sql += "(?regionHandle, ?regionName, ?uuid, ?regionRecvKey, ?regionSecret, ?regionSendKey, ?regionDataURI, "; | 670 | sql += "(?regionHandle, ?regionName, ?uuid, ?regionRecvKey, ?regionSecret, ?regionSendKey, ?regionDataURI, "; |
679 | sql += | 671 | sql += |
680 | "?serverIP, ?serverPort, ?serverURI, ?locX, ?locY, ?locZ, ?eastOverrideHandle, ?westOverrideHandle, ?southOverrideHandle, ?northOverrideHandle, ?regionAssetURI, ?regionAssetRecvKey, "; | 672 | "?serverIP, ?serverPort, ?serverURI, ?locX, ?locY, ?locZ, ?eastOverrideHandle, ?westOverrideHandle, ?southOverrideHandle, ?northOverrideHandle, ?regionAssetURI, ?regionAssetRecvKey, "; |
681 | sql += | 673 | sql += |
682 | "?regionAssetSendKey, ?regionUserURI, ?regionUserRecvKey, ?regionUserSendKey, ?regionMapTexture, ?serverHttpPort, ?serverRemotingPort, ?owner_uuid)"; | 674 | "?regionAssetSendKey, ?regionUserURI, ?regionUserRecvKey, ?regionUserSendKey, ?regionMapTexture, ?serverHttpPort, ?serverRemotingPort, ?owner_uuid)"; |
683 | // daTwitch | 675 | |
684 | if (GRID_ONLY_UPDATE_NECESSARY_DATA) | 676 | if (GRID_ONLY_UPDATE_NECESSARY_DATA) |
685 | { | 677 | { |
686 | sql += "ON DUPLICATE KEY UPDATE serverIP = ?serverIP, serverPort = ?serverPort, serverURI = ?serverURI, owner_uuid - ?owner_uuid;"; | 678 | sql += "ON DUPLICATE KEY UPDATE serverIP = ?serverIP, serverPort = ?serverPort, serverURI = ?serverURI, owner_uuid - ?owner_uuid;"; |
687 | // daTwitch | ||
688 | } | 679 | } |
689 | else | 680 | else |
690 | { | 681 | { |
@@ -719,8 +710,7 @@ namespace OpenSim.Framework.Data.MySQL | |||
719 | parameters["?regionMapTexture"] = regiondata.regionMapTextureID.ToString(); | 710 | parameters["?regionMapTexture"] = regiondata.regionMapTextureID.ToString(); |
720 | parameters["?serverHttpPort"] = regiondata.httpPort.ToString(); | 711 | parameters["?serverHttpPort"] = regiondata.httpPort.ToString(); |
721 | parameters["?serverRemotingPort"] = regiondata.remotingPort.ToString(); | 712 | parameters["?serverRemotingPort"] = regiondata.remotingPort.ToString(); |
722 | parameters["?owner_uuid"] = regiondata.owner_uuid.ToString(); | 713 | parameters["?owner_uuid"] = regiondata.owner_uuid.ToString(); |
723 | // daTwitch | ||
724 | 714 | ||
725 | bool returnval = false; | 715 | bool returnval = false; |
726 | 716 | ||