Skip to content

Commit

Permalink
Merge pull request apache#1644 from apache/OAK-10792
Browse files Browse the repository at this point in the history
OAK-10792 : rename enum value DGC to FGC
  • Loading branch information
rishabhdaim authored Aug 20, 2024
2 parents 4463769 + 4209b8b commit 6c9cb81
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
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;
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -428,6 +428,18 @@ public GCResult(boolean ignoreGC, TimeInterval gcScope) {
}

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;
}
}
}

0 comments on commit 6c9cb81

Please sign in to comment.