* Fix for Mantis #2087, Standalone MySQL broken with threading improvements. (Didnt realise this code was being shared with the gridservers)

0.6.0-stable
Adam Frisby 2008-08-30 14:27:28 +00:00
parent b63922dcfe
commit e471a33961
1 changed files with 9 additions and 0 deletions

View File

@ -162,6 +162,15 @@ namespace OpenSim.Data.MySQL
m_usersTableName = "users"; m_usersTableName = "users";
m_userFriendsTableName = "userfriends"; m_userFriendsTableName = "userfriends";
database = new MySQLManager(m_connectString); database = new MySQLManager(m_connectString);
m_log.Info("Creating " + m_maxConnections + " DB connections...");
for (int i = 0; i < m_maxConnections; i++)
{
m_log.Info("Connecting to DB... [" + i + "]");
MySQLSuperManager msm = new MySQLSuperManager();
msm.Manager = new MySQLManager(m_connectString);
m_dbconnections.Add(i, msm);
}
} }
// This actually does the roll forward assembly stuff // This actually does the roll forward assembly stuff