stefan-egli commented on a change in pull request #247:
URL: https://github.com/apache/jackrabbit-oak/pull/247#discussion_r481248717
##########
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:
That would also require `sweep2Lock` to be passed to the
`BackgroundSweep2Operation` via some other means though, so not sure that's
worth it?
----------------------------------------------------------------
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]