Skip to content

Commit 8f6222e

Browse files
HDDS-12949. Cleanup SCMSafeModeManager (apache#8390)
1 parent adb385f commit 8f6222e

File tree

18 files changed

+231
-335
lines changed

18 files changed

+231
-335
lines changed

hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/ha/SCMContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public final class SCMContext {
7272
private SCMContext(Builder b) {
7373
isLeader = b.isLeader;
7474
term = b.term;
75-
safeModeStatus = new SafeModeStatus(b.isInSafeMode, b.isPreCheckComplete);
75+
safeModeStatus = SafeModeStatus.of(b.isInSafeMode, b.isPreCheckComplete);
7676
finalizationCheckpoint = b.finalizationCheckpoint;
7777
scm = b.scm;
7878
threadNamePrefix = b.threadNamePrefix;

0 commit comments

Comments
 (0)