[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bakonadi=5D_server/src/storage=3A_Fix_possible_race_?=
From: Volker Krause <vkrause () kde ! org>
Date: 2011-04-22 10:01:38
Message-ID: 20110422100138.94FFEA60A4 () git ! kde ! org
[Download RAW message or body]
Git commit 09695c3948ff775b20c16371a67af409d22dac28 by Volker Krause.
Committed on 22/04/2011 at 11:26.
Pushed by vkrause into branch 'master'.
Fix possible race on table cache access.
M +2 -1 server/src/storage/entities.xsl
http://commits.kde.org/akonadi/09695c3948ff775b20c16371a67af409d22dac28
diff --git a/server/src/storage/entities.xsl b/server/src/storage/entities.xsl
index 7410338..421fd83 100644
--- a/server/src/storage/entities.xsl
+++ b/server/src/storage/entities.xsl
@@ -144,8 +144,9 @@ set<xsl:value-of select="$methodName"/>( <xsl:call-template \
name="argument"/> ) if ( Private::cacheEnabled ) {
Private::cacheMutex.lock();
if ( Private::<xsl:value-of select="$cache"/>.contains( <xsl:value-of \
select="$key"/> ) ) { + const <xsl:value-of select="$className"/> tmp = \
Private::<xsl:value-of select="$cache"/>.value( <xsl:value-of select="$key"/> ); \
Private::cacheMutex.unlock();
- return Private::<xsl:value-of select="$cache"/>.value( <xsl:value-of \
select="$key"/> ); + return tmp;
}
Private::cacheMutex.unlock();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic