rishabhdaim commented on code in PR #993:
URL: https://github.com/apache/jackrabbit-oak/pull/993#discussion_r1276288396
##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/util/Utils.java:
##########
@@ -894,6 +904,17 @@ public static boolean isThrottlingEnabled(final
DocumentNodeStoreBuilder<?> buil
return builder.isThrottlingEnabled() || (docStoreThrottlingFeature !=
null && docStoreThrottlingFeature.isEnabled());
}
+ /**
+ * Check whether detailed GC is enabled or not for document store.
+ *
+ * @param builder instance for DocumentNodeStoreBuilder
+ * @return true if detailed GC is enabled else false
+ */
+ public static boolean isDetailedGCEnabled(final
DocumentNodeStoreBuilder<?> builder) {
+ final Feature docStoreDetailedGCFeature =
builder.getDocStoreDetailedGCFeature();
+ return builder.isDetailedGCEnabled() || (docStoreDetailedGCFeature !=
null && docStoreDetailedGCFeature.isEnabled());
Review Comment:
Yes, it was decided to have this flexibility to enable this via either
config or feature toggle.
cc @mreutegg
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]