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 da...@apache.org on 2024/08/14 05:38:37 UTC
(jackrabbit-oak) branch OAK-10792 created (now 1507c1689e)
This is an automated email from the ASF dual-hosted git repository.
daim pushed a change to branch OAK-10792
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
at 1507c1689e OAK-10792 : rename enum value DGC to FGC
This branch includes the following new commits:
new 1507c1689e OAK-10792 : rename enum value DGC to FGC
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(jackrabbit-oak) 01/01: OAK-10792 : rename enum value DGC to FGC
Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
daim pushed a commit to branch OAK-10792
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit 1507c1689e726083c29304e3822d560e76a7c29b
Author: Rishabh Kumar <di...@adobe.com>
AuthorDate: Wed Aug 14 10:17:25 2024 +0530
OAK-10792 : rename enum value DGC to FGC
---
.../oak/plugins/document/VersionGCRecommendations.java | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/VersionGCRecommendations.java b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/VersionGCRecommendations.java
index c21df10f43..a0930a9002 100644
--- a/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/VersionGCRecommendations.java
+++ b/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/VersionGCRecommendations.java
@@ -37,7 +37,7 @@ import static java.util.Map.of;
import static java.util.Optional.ofNullable;
import static java.util.concurrent.TimeUnit.SECONDS;
import static org.apache.jackrabbit.oak.plugins.document.NodeDocument.MIN_ID_VALUE;
-import static org.apache.jackrabbit.oak.plugins.document.VersionGCRecommendations.GcType.DGC;
+import static org.apache.jackrabbit.oak.plugins.document.VersionGCRecommendations.GcType.FGC;
import static org.apache.jackrabbit.oak.plugins.document.VersionGCRecommendations.GcType.RGC;
import static org.apache.jackrabbit.oak.plugins.document.VersionGarbageCollector.SETTINGS_COLLECTION_FULL_GC_DOCUMENT_ID_PROP;
import static org.apache.jackrabbit.oak.plugins.document.VersionGarbageCollector.SETTINGS_COLLECTION_FULL_GC_DRY_RUN_DOCUMENT_ID_PROP;
@@ -230,7 +230,7 @@ public class VersionGCRecommendations {
scope = gcResult.gcScope;
ignoreDueToCheckPoint = gcResult.ignoreGC;
- final GCResult fullGCResult = getResult(options, checkpoint, clock, DGC, scopeFullGC);
+ final GCResult fullGCResult = getResult(options, checkpoint, clock, FGC, scopeFullGC);
scopeFullGC = fullGCResult.gcScope;
ignoreFullGCDueToCheckPoint = fullGCResult.ignoreGC;
@@ -428,6 +428,18 @@ public class VersionGCRecommendations {
}
enum GcType {
- RGC, DGC
+ RGC("Revision GC"), // revision GC
+ FGC("Full GC"); // full GC
+
+ private final String name;
+
+ GcType(String name) {
+ this.name = name;
+ }
+
+ @Override
+ public String toString() {
+ return this.name;
+ }
}
}