fix minor thread safety issue

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@37878 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2014-05-13 10:26:48 +00:00
parent 8d406989d0
commit 8046f5c92c
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2014-05-13 Richard Frith-Macdonald <rfm@gnu.org>
* SQLClient.m:
Fix tiny window in which a connection could be unlocked yet have
the flag set to say it is in a transaction (thus potentially
allowing a locking consistency error).
2014-05-08 Richard Frith-Macdonald <rfm@gnu.org>
* GNUmakefile: new subminor version for bugfix release

View file

@ -1134,7 +1134,7 @@ SQLCLIENT_PRIVATE
selector: (SEL)aSelector
name: (NSString*)name;
/** Posts a notification via the dastabase. The name is an SQL identifier
/** Posts a notification via the database. The name is an SQL identifier
* (for which observers may have registered) and the extra payload
* information may be nil if not required.
*/

View file

@ -1079,8 +1079,8 @@ static unsigned int maxConnections = 8;
}
NS_HANDLER
{
[lock unlock];
_inTransaction = NO;
[lock unlock];
[localException raise];
}
NS_ENDHANDLER