Remove code from an experimantal patch that wasn't supposed to be committed
parent
fba9e3f513
commit
95fec14201
|
@ -141,14 +141,6 @@ namespace OpenSim.Data.MySQL
|
|||
Migration m = new Migration(m_connection, assem, "RegionStore");
|
||||
m.Update();
|
||||
|
||||
PrepareConnection();
|
||||
}
|
||||
|
||||
public void Dispose() {}
|
||||
|
||||
private void PrepareConnection()
|
||||
{
|
||||
GetWaitTimeout();
|
||||
|
||||
MySqlCommand primSelectCmd = new MySqlCommand(m_primSelect, m_connection);
|
||||
m_primDataAdapter = new MySqlDataAdapter(primSelectCmd);
|
||||
|
@ -211,6 +203,8 @@ namespace OpenSim.Data.MySQL
|
|||
}
|
||||
}
|
||||
|
||||
public void Dispose() {}
|
||||
|
||||
/// <summary>
|
||||
/// Get the wait_timeout value for our connection
|
||||
/// </summary>
|
||||
|
@ -260,8 +254,6 @@ namespace OpenSim.Data.MySQL
|
|||
m_connection.Close();
|
||||
m_connection = new MySqlConnection(m_connectionString);
|
||||
m_connection.Open();
|
||||
|
||||
PrepareConnection();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -315,13 +307,6 @@ namespace OpenSim.Data.MySQL
|
|||
/// <param name="obj">The object</param>
|
||||
/// <param name="regionUUID">The region UUID</param>
|
||||
public void StoreObject(SceneObjectGroup obj, UUID regionUUID)
|
||||
{
|
||||
int tries = 3;
|
||||
while (tries > 0)
|
||||
{
|
||||
tries--;
|
||||
|
||||
try
|
||||
{
|
||||
lock (m_dataSet)
|
||||
{
|
||||
|
@ -339,17 +324,6 @@ namespace OpenSim.Data.MySQL
|
|||
}
|
||||
}
|
||||
Commit();
|
||||
return;
|
||||
}
|
||||
}
|
||||
catch(MySqlException)
|
||||
{
|
||||
m_connection.Close();
|
||||
m_connection = new MySqlConnection(m_connectionString);
|
||||
m_connection.Open();
|
||||
|
||||
PrepareConnection();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue