This is an automated email from the ASF dual-hosted git repository.

east pushed a commit to branch cluster_show_sg
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/cluster_show_sg by this push:
     new d329317  update
d329317 is described below

commit d329317a2c53159ddf7c034fc1f15ed3bec85e68
Author: mdf369 <[email protected]>
AuthorDate: Thu Mar 28 21:52:05 2019 +0800

    update
---
 .../rpc/processor/QueryMetadataAsyncProcessor.java     |  2 +-
 .../org/apache/iotdb/cluster/utils/hash/Router.java    | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git 
a/cluster/src/main/java/org/apache/iotdb/cluster/rpc/processor/QueryMetadataAsyncProcessor.java
 
b/cluster/src/main/java/org/apache/iotdb/cluster/rpc/processor/QueryMetadataAsyncProcessor.java
index ac27f69..68af96e 100644
--- 
a/cluster/src/main/java/org/apache/iotdb/cluster/rpc/processor/QueryMetadataAsyncProcessor.java
+++ 
b/cluster/src/main/java/org/apache/iotdb/cluster/rpc/processor/QueryMetadataAsyncProcessor.java
@@ -85,7 +85,7 @@ public class QueryMetadataAsyncProcessor extends 
BasicAsyncUserProcessor<QueryMe
           public void run(Status status, long index, byte[] reqCtx) {
             if (status.isOk()) {
               try {
-                asyncContext.sendResponse(new QueryMetadataResponse(false, 
true, metadataHolder.getFsm().getAllStorageGroups())));
+                asyncContext.sendResponse(new QueryMetadataResponse(false, 
true, metadataHolder.getFsm().getAllStorageGroups()));
               } catch (final PathErrorException e) {
                 asyncContext.sendResponse(new QueryMetadataResponse(false, 
false));
               }
diff --git 
a/cluster/src/main/java/org/apache/iotdb/cluster/utils/hash/Router.java 
b/cluster/src/main/java/org/apache/iotdb/cluster/utils/hash/Router.java
index e47d3a5..74af4bc 100644
--- a/cluster/src/main/java/org/apache/iotdb/cluster/utils/hash/Router.java
+++ b/cluster/src/main/java/org/apache/iotdb/cluster/utils/hash/Router.java
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package org.apache.iotdb.cluster.utils.hash;
 
 import java.util.Arrays;

Reply via email to