Enable RevisionGC task for non primary SegmentNodeStore
@@ -539,8 +539,6 @@ public class SegmentNodeStoreService {
}
// Expose an MBean to managing and monitoring garbage collection
-
- if (configuration.isPrimarySegmentStore()) {
final FileStoreGCMonitor monitor = new FileStoreGCMonitor(Clock.SIMPLE);
closeables.add(registrations.register(
GCMonitor.class,
@@ -554,6 +552,7 @@ public class SegmentNodeStoreService {
"Segment node store revision garbage collection"
));
}
+
Runnable cancelGC = new Runnable() {
@Override
@@ -576,7 +575,6 @@ public class SegmentNodeStoreService {
RevisionGCMBean.TYPE,
"Revision garbage collection"
));
- }
// Expose statistics about the FileStore
