提交 b80c3fb5 authored 作者: LaughingMan's avatar LaughingMan

White space fixes

上级 4e38942e
...@@ -161,7 +161,7 @@ public class CreateCluster extends Tool { ...@@ -161,7 +161,7 @@ public class CreateCluster extends Tool {
} }
new Thread( new Thread(
new Runnable(){ new Runnable() {
@Override @Override
public void run() { public void run() {
try { try {
...@@ -169,9 +169,9 @@ public class CreateCluster extends Tool { ...@@ -169,9 +169,9 @@ public class CreateCluster extends Tool {
pipeWriter.write(rs.getString(1) + "\n"); pipeWriter.write(rs.getString(1) + "\n");
} }
} catch (SQLException ex) { } catch (SQLException ex) {
throw new IllegalStateException("Producing script from the source DB is failing.",ex); throw new IllegalStateException("Producing script from the source DB is failing.", ex);
} catch (IOException ex) { } catch (IOException ex) {
throw new IllegalStateException("Producing script from the source DB is failing.",ex); throw new IllegalStateException("Producing script from the source DB is failing.", ex);
} finally { } finally {
IOUtils.closeSilently(pipeWriter); IOUtils.closeSilently(pipeWriter);
} }
...@@ -184,7 +184,7 @@ public class CreateCluster extends Tool { ...@@ -184,7 +184,7 @@ public class CreateCluster extends Tool {
urlTarget, user, password); urlTarget, user, password);
Statement statTarget = connTarget.createStatement()) Statement statTarget = connTarget.createStatement())
{ {
RunScript.execute(connTarget,pipeReader); RunScript.execute(connTarget, pipeReader);
// set the cluster to the serverList on both databases // set the cluster to the serverList on both databases
statSource.executeUpdate("SET CLUSTER '" + serverList + "'"); statSource.executeUpdate("SET CLUSTER '" + serverList + "'");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论