From e471a33961e047162f1a2335e26872ebbc2f9332 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sat, 30 Aug 2008 14:27:28 +0000 Subject: * Fix for Mantis #2087, Standalone MySQL broken with threading improvements. (Didnt realise this code was being shared with the gridservers) --- OpenSim/Data/MySQL/MySQLUserData.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim/Data/MySQL/MySQLUserData.cs') 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 m_usersTableName = "users"; m_userFriendsTableName = "userfriends"; 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 -- cgit v1.1