mreutegg commented on a change in pull request #247:
URL: https://github.com/apache/jackrabbit-oak/pull/247#discussion_r496584584



##########
File path: 
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStore.java
##########
@@ -718,6 +756,15 @@ public int getMemory() {
 
             backgroundUpdateThread.start();
             backgroundSweepThread.start();
+
+            if (sweep2Lock >= 0) {
+                // sweep2 is necessary - so start a sweep2 background task
+                backgroundSweep2Thread = new Thread(
+                        new BackgroundSweep2Operation(this, isDisposed, 
sweep2Lock),
+                        "DocumentNodeStore background sweep2 thread " + 
threadNamePostfix);
+                backgroundSweep2Thread.setDaemon(true);

Review comment:
       Ok, I didn't notice the `sweep2Lock`. Then let's keep it that way.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to