FlyingZC commented on code in PR #20770:
URL: https://github.com/apache/shardingsphere/pull/20770#discussion_r965851932
##########
shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/instance/metadata/jdbc/JDBCInstanceMetaData.java:
##########
@@ -32,9 +32,18 @@ public final class JDBCInstanceMetaData implements
InstanceMetaData {
private final String ip;
+ private final boolean force;
Review Comment:
You are right.
##########
shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/main/java/org/apache/shardingsphere/proxy/arguments/BootstrapArguments.java:
##########
@@ -74,6 +74,19 @@ public List<String> getAddresses() {
return args.length < 3 ?
Collections.singletonList(DEFAULT_BIND_ADDRESS) :
Arrays.asList(args[2].split(","));
}
+ /**
+ * Get force startup parameter.
+ *
+ * @return force parameter
+ */
+ public boolean getForce() {
+ return args.length >= 4 && parseForceParameter(args[3]);
+ }
+
+ private boolean parseForceParameter(final String forceParam) {
+ return forceParam.trim().equals("-f");
Review Comment:
I will try.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]