aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Data
diff options
context:
space:
mode:
authorJeff Ames2008-02-20 18:38:20 +0000
committerJeff Ames2008-02-20 18:38:20 +0000
commita8cfbbe963529728acbab4d9936cb89af380d1ac (patch)
tree16a72fba3d15556f6702127e7cfb98aa9fb9cf81 /OpenSim/Framework/Data
parentFix exception when reading OpenSim.ini file. (diff)
downloadopensim-SC-a8cfbbe963529728acbab4d9936cb89af380d1ac.zip
opensim-SC-a8cfbbe963529728acbab4d9936cb89af380d1ac.tar.gz
opensim-SC-a8cfbbe963529728acbab4d9936cb89af380d1ac.tar.bz2
opensim-SC-a8cfbbe963529728acbab4d9936cb89af380d1ac.tar.xz
Minor cleanup.
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Data.DB4o/DB4oUserData.cs4
-rw-r--r--OpenSim/Framework/Data.MSSQL/MSSQLAssetData.cs2
-rw-r--r--OpenSim/Framework/Data.MySQL/MySQLAssetData.cs2
-rw-r--r--OpenSim/Framework/Data.MySQL/MySQLManager.cs48
-rw-r--r--OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs2
-rw-r--r--OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs2
-rw-r--r--OpenSim/Framework/Data/RegionProfileData.cs26
7 files changed, 35 insertions, 51 deletions
diff --git a/OpenSim/Framework/Data.DB4o/DB4oUserData.cs b/OpenSim/Framework/Data.DB4o/DB4oUserData.cs
index 35a3635..0514a50 100644
--- a/OpenSim/Framework/Data.DB4o/DB4oUserData.cs
+++ b/OpenSim/Framework/Data.DB4o/DB4oUserData.cs
@@ -37,7 +37,7 @@ namespace OpenSim.Framework.Data.DB4o
37 /// </summary> 37 /// </summary>
38 public class DB4oUserData : IUserData 38 public class DB4oUserData : IUserData
39 { 39 {
40 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 40 //private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
41 41
42 /// <summary> 42 /// <summary>
43 /// The database manager 43 /// The database manager
@@ -267,4 +267,4 @@ namespace OpenSim.Framework.Data.DB4o
267 return "0.1"; 267 return "0.1";
268 } 268 }
269 } 269 }
270} \ No newline at end of file 270}
diff --git a/OpenSim/Framework/Data.MSSQL/MSSQLAssetData.cs b/OpenSim/Framework/Data.MSSQL/MSSQLAssetData.cs
index 4d5e4c7..977b401 100644
--- a/OpenSim/Framework/Data.MSSQL/MSSQLAssetData.cs
+++ b/OpenSim/Framework/Data.MSSQL/MSSQLAssetData.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/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
diff --git a/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs b/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs
index 23b4cb4..566880b 100644
--- a/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.cs
+++ b/OpenSim/Framework/Data.SQLite/SQLiteInventoryStore.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.SQLite/SQLiteRegionData.cs b/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs
index 0e1d2d3..760a3ba 100644
--- a/OpenSim/Framework/Data.SQLite/SQLiteRegionData.cs
+++ b/OpenSim/Framework/Data.SQLite/SQLiteRegionData.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/RegionProfileData.cs b/OpenSim/Framework/Data/RegionProfileData.cs
index 3dbe27f..fb53ac7 100644
--- a/OpenSim/Framework/Data/RegionProfileData.cs
+++ b/OpenSim/Framework/Data/RegionProfileData.cs
@@ -123,23 +123,17 @@ namespace OpenSim.Framework.Data
123 /// </summary> 123 /// </summary>
124 public LLUUID regionMapTextureID = new LLUUID("00000000-0000-0000-9999-000000000006"); 124 public LLUUID regionMapTextureID = new LLUUID("00000000-0000-0000-9999-000000000006");
125 125
126 // added by daTwitch 126 // part of an initial brutish effort to provide accurate information (as per the xml region spec)
127 // part of an initial brutish effort to provide accurate information (as per the xml region spec) 127 // wrt the ownership of a given region
128 // wrt the ownership of a given region 128 // the (very bad) assumption is that this value is being read and handled inconsistently or
129 // the (very bad) assumption is that this value is being read and handled inconsistently or 129 // not at all. Current strategy is to put the code in place to support the validity of this information
130 // not at all. Current strategy is to put the code in place to support the validity of this information 130 // and to roll forward debugging any issues from that point
131 // and to roll forward debugging any issues from that point
132 //
133 // this particular mod to the file provides support within the spec for RegionProfileData for the
134 // owner_uuid for the region
135 //
136 /// <summary>
137 /// this particular mod to the file provides support within the spec for RegionProfileData for the
138 /// owner_uuid for the region
139 /// </summary>
140 public LLUUID owner_uuid;
141 // 131 //
142 // end of daTwitch mod to this file 132 /// <summary>
133 /// this particular mod to the file provides support within the spec for RegionProfileData for the
134 /// owner_uuid for the region
135 /// </summary>
136 public LLUUID owner_uuid;
143 137
144 /// <summary> 138 /// <summary>
145 /// Get Sim profile data from grid server when in grid mode 139 /// Get Sim profile data from grid server when in grid mode