Skip to content

Commit 6580001

Browse files
committed
moving cluster settings up
1 parent 5690afd commit 6580001

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/crdb/docker/RemoteClientApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ public void run(ApplicationArguments args) throws Exception {
9090
handleProcess(builder);
9191
}
9292

93+
handleProcess(new ProcessBuilder("/cockroach", "sql", "--execute", "SET CLUSTER SETTING server.remote_debugging.mode = 'any'"));
94+
9395
if (StringUtils.hasText(databaseName)) {
9496
List<String> commands = new ArrayList<>();
9597
commands.add("/cockroach");
@@ -131,8 +133,6 @@ public void run(ApplicationArguments args) throws Exception {
131133
handleProcess(builder);
132134
}
133135

134-
handleProcess(new ProcessBuilder("/cockroach", "sql", "--execute", "SET CLUSTER SETTING server.remote_debugging.mode = 'any'"));
135-
136136
}
137137

138138
private void handleProcess(ProcessBuilder builder) throws IOException, InterruptedException {

0 commit comments

Comments
 (0)