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 to...@apache.org on 2017/03/30 21:07:13 UTC

svn commit: r1789584 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java

Author: tomekr
Date: Thu Mar 30 21:07:12 2017
New Revision: 1789584

URL: http://svn.apache.org/viewvc?rev=1789584&view=rev
Log:
OAK-4839: Allow to register DocumentNodeStore as a NodeStoreProvider

Don't track observers if the document node store is just a node store
provider.

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java?rev=1789584&r1=1789583&r2=1789584&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStoreService.java Thu Mar 30 21:07:12 2017
@@ -589,8 +589,10 @@ public class DocumentNodeStoreService {
         registerLastRevRecoveryJob(nodeStore);
         registerJournalGC(nodeStore);
 
-        observerTracker = new ObserverTracker(nodeStore);
-        observerTracker.start(context.getBundleContext());
+        if (!isNodeStoreProvider()) {
+            observerTracker = new ObserverTracker(nodeStore);
+            observerTracker.start(context.getBundleContext());
+        }
         journalPropertyHandlerFactory.start(whiteboard);
 
         DocumentStore ds = nodeStore.getDocumentStore();