diff options
author | rowanbeentje <rowan@beent.je> | 2012-04-18 23:59:05 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-04-18 23:59:05 +0000 |
commit | 497ab60346e74927fb7980734799d1e57af541d5 (patch) | |
tree | e215d8c61002e1869759a47c6f344f5e9a729221 /Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Server Info.m | |
parent | ec277286b0200cf5c36c4bb2ef11cb5fd9b31a67 (diff) | |
download | sequelpro-497ab60346e74927fb7980734799d1e57af541d5.tar.gz sequelpro-497ab60346e74927fb7980734799d1e57af541d5.tar.bz2 sequelpro-497ab60346e74927fb7980734799d1e57af541d5.zip |
- Correctly call mysql_library_init() on application start, and mysql_thread_init() and mysql_thread_end() on each thread as appropriate. This will improve observed MySQL stability, especially in certain circumstances such as LOAD DATA INFILE.
Diffstat (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Server Info.m')
-rw-r--r-- | Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Server Info.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Server Info.m b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Server Info.m index f695d977..1022ccd1 100644 --- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Server Info.m +++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection Categories/Server Info.m @@ -137,6 +137,9 @@ // Lock the connection before using it [self _lockConnection]; + // Ensure per-thread variables are set up + [self _validateThreadSetup]; + // Get the process list MYSQL_RES *mysqlResult = mysql_list_processes(mySQLConnection); |