diff options
author | stuconnolly <stuart02@gmail.com> | 2009-07-21 17:51:40 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-07-21 17:51:40 +0000 |
commit | 23de25f49c94fbc3fb4d9ab22a041044ed668c30 (patch) | |
tree | f1c5b57463b9ed8342f4310d4b2201cc0a597c28 /Frameworks | |
parent | 96b49457bd2066507f745a923f564cf66c8611d7 (diff) | |
download | sequelpro-23de25f49c94fbc3fb4d9ab22a041044ed668c30.tar.gz sequelpro-23de25f49c94fbc3fb4d9ab22a041044ed668c30.tar.bz2 sequelpro-23de25f49c94fbc3fb4d9ab22a041044ed668c30.zip |
To prevent a deadlock situation in fetchMaxAllowedPacket, query lock must be unlocked as serverMajorVersion performs a query and thus attempts to obtain the lock.
Diffstat (limited to 'Frameworks')
-rw-r--r-- | Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m index fb0dcc10..94b610bc 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m @@ -1802,8 +1802,8 @@ static void forcePingTimeout(int signalNumber) NSArray *a = [r fetchRowAsArray]; [r autorelease]; if([a count]) { - maxAllowedPacketSize = [[a objectAtIndex:([self serverMajorVersion] == 3)?1:0] intValue]; [queryLock unlock]; + maxAllowedPacketSize = [[a objectAtIndex:([self serverMajorVersion] == 3)?1:0] intValue]; return true; } } |