jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1373373 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/index/IndexWrapper.java
Date Wed, 15 Aug 2012 12:45:14 GMT
Author: thomasm
Date: Wed Aug 15 12:45:14 2012
New Revision: 1373373

URL: http://svn.apache.org/viewvc?rev=1373373&view=rev
Log:
OAK-122 Performance test suite - (allow concurrent branching)

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/index/IndexWrapper.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/index/IndexWrapper.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/index/IndexWrapper.java?rev=1373373&r1=1373372&r2=1373373&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/index/IndexWrapper.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/mk/index/IndexWrapper.java
Wed Aug 15 12:45:14 2012
@@ -17,8 +17,10 @@
 package org.apache.jackrabbit.mk.index;
 
 import java.io.InputStream;
+import java.util.Collections;
 import java.util.HashSet;
 import java.util.Iterator;
+import java.util.Set;
 
 import org.apache.jackrabbit.mk.ExceptionFactory;
 import org.apache.jackrabbit.mk.api.MicroKernel;
@@ -36,7 +38,7 @@ public class IndexWrapper extends MicroK
 
     private final MicroKernelWrapper mk;
     private final Indexer indexer;
-    private final HashSet<String> branchRevisions = new HashSet<String>();
+    private final Set<String> branchRevisions = Collections.synchronizedSet(new HashSet<String>());
 
     public IndexWrapper(MicroKernel mk) {
         this.mk = MicroKernelWrapperBase.wrap(mk);



Mime
View raw message