Skip to content

Commit

Permalink
MONDRIAN: Prevents a useless tear-down call within the SegmentCacheWo…
Browse files Browse the repository at this point in the history
…rker.

[git-p4: depot-paths = "//open/mondrian/": change = 14700]
  • Loading branch information
lucboudreau committed Oct 18, 2011
1 parent 47ed31d commit 82949c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/mondrian/rolap/agg/SegmentCacheWorker.java
Expand Up @@ -42,7 +42,9 @@ private synchronized static void initCache() {
// mondrian properties.
final String cacheName =
MondrianProperties.instance().SegmentCache.get();
setCache(cacheName);
if (cacheName != null) {
setCache(cacheName);
}

if (segmentCache == null) {
// There was a property defined. We use this one
Expand Down

0 comments on commit 82949c7

Please sign in to comment.