aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLUserData.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-08-30 14:27:28 +0000
committerAdam Frisby2008-08-30 14:27:28 +0000
commite471a33961e047162f1a2335e26872ebbc2f9332 (patch)
tree02cd66cb09ad377fd06f4a61f7b12e922ddd4448 /OpenSim/Data/MySQL/MySQLUserData.cs
parent* Minor fix to previous threading patch, every nTH request would previously h... (diff)
downloadopensim-SC-e471a33961e047162f1a2335e26872ebbc2f9332.zip
opensim-SC-e471a33961e047162f1a2335e26872ebbc2f9332.tar.gz
opensim-SC-e471a33961e047162f1a2335e26872ebbc2f9332.tar.bz2
opensim-SC-e471a33961e047162f1a2335e26872ebbc2f9332.tar.xz
* Fix for Mantis #2087, Standalone MySQL broken with threading improvements. (Didnt realise this code was being shared with the gridservers)
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MySQL/MySQLUserData.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs
index 78d1092..7a44d3c 100644
--- a/OpenSim/Data/MySQL/MySQLUserData.cs
+++ b/OpenSim/Data/MySQL/MySQLUserData.cs
@@ -162,6 +162,15 @@ namespace OpenSim.Data.MySQL
162 m_usersTableName = "users"; 162 m_usersTableName = "users";
163 m_userFriendsTableName = "userfriends"; 163 m_userFriendsTableName = "userfriends";
164 database = new MySQLManager(m_connectString); 164 database = new MySQLManager(m_connectString);
165
166 m_log.Info("Creating " + m_maxConnections + " DB connections...");
167 for (int i = 0; i < m_maxConnections; i++)
168 {
169 m_log.Info("Connecting to DB... [" + i + "]");
170 MySQLSuperManager msm = new MySQLSuperManager();
171 msm.Manager = new MySQLManager(m_connectString);
172 m_dbconnections.Add(i, msm);
173 }
165 } 174 }
166 175
167 // This actually does the roll forward assembly stuff 176 // This actually does the roll forward assembly stuff