You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ea...@apache.org on 2019/04/18 13:01:50 UTC
[incubator-iotdb] branch cluster_nodetool updated: update
This is an automated email from the ASF dual-hosted git repository.
east pushed a commit to branch cluster_nodetool
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git
The following commit(s) were added to refs/heads/cluster_nodetool by this push:
new b78a401 update
b78a401 is described below
commit b78a4016cb6690aac535ae002144669a6ecb1914
Author: mdf369 <95...@qq.com>
AuthorDate: Thu Apr 18 21:01:34 2019 +0800
update
---
iotdb-cli/src/main/java/org/apache/iotdb/cli/service/Host.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/iotdb-cli/src/main/java/org/apache/iotdb/cli/service/Host.java b/iotdb-cli/src/main/java/org/apache/iotdb/cli/service/Host.java
index 040d5fd..a52c7a1 100644
--- a/iotdb-cli/src/main/java/org/apache/iotdb/cli/service/Host.java
+++ b/iotdb-cli/src/main/java/org/apache/iotdb/cli/service/Host.java
@@ -64,7 +64,9 @@ public class Host extends NodeToolCmd {
for (int i = 0; i < sgs.length; i++) {
builder.append(sgs[i]).append(", ");
}
- builder.delete(builder.length() - 2, builder.length());
+ if (sgs.length > 0) {
+ builder.delete(builder.length() - 2, builder.length());
+ }
builder.append(')');
} else {
builder.append(sgs.length);