You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by th...@apache.org on 2015/04/28 09:35:29 UTC

svn commit: r1676423 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/persistentCache/PersistentCache.java

Author: thomasm
Date: Tue Apr 28 07:35:28 2015
New Revision: 1676423

URL: http://svn.apache.org/r1676423
Log:
OAK-2815 Persistent cache may block commit

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/persistentCache/PersistentCache.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/persistentCache/PersistentCache.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/persistentCache/PersistentCache.java?rev=1676423&r1=1676422&r2=1676423&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/persistentCache/PersistentCache.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/persistentCache/PersistentCache.java Tue Apr 28 07:35:28 2015
@@ -51,7 +51,7 @@ public class PersistentCache {
     private boolean cacheDiff = true;
     private boolean cacheDocs;
     private boolean cacheDocChildren;
-    private boolean compactOnClose = true;
+    private boolean compactOnClose;
     private boolean compress = true;
     private ArrayList<GenerationCache> caches = 
             new ArrayList<GenerationCache>();
@@ -87,6 +87,8 @@ public class PersistentCache {
                 cacheDocChildren = true;
             } else if (p.equals("-compact")) {
                 compactOnClose = false;
+            } else if (p.equals("+compact")) {
+                compactOnClose = true;
             } else if (p.equals("-compress")) {
                 compress = false;
             } else if (p.endsWith("time")) {