Skip to content

Commit eb19010

Browse files
committed
Move upgrade_args to a separate variable
1 parent c1e13a2 commit eb19010

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

rust/operator-binary/src/container.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,12 @@ impl ContainerConfig {
548548
args.push_str(&Self::export_kerberos_real_env_var_command());
549549
}
550550

551+
let upgrade_args = if hdfs.is_upgrading() && *role == HdfsRole::NameNode {
552+
"-rollingUpgrade started"
553+
} else {
554+
""
555+
};
556+
551557
match self {
552558
ContainerConfig::Hdfs { role, .. } => {
553559
args.push_str(&self.copy_log4j_properties_cmd(
@@ -571,11 +577,6 @@ wait_for_termination $!
571577
{create_vector_shutdown_file_command}
572578
"#,
573579
hadoop_home = Self::HADOOP_HOME,
574-
upgrade_args = if hdfs.is_upgrading() && *role == HdfsRole::NameNode {
575-
"-rollingUpgrade started"
576-
} else {
577-
""
578-
},
579580
remove_vector_shutdown_file_command =
580581
remove_vector_shutdown_file_command(STACKABLE_LOG_DIR),
581582
create_vector_shutdown_file_command =

0 commit comments

Comments
 (0)