You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by qi...@apache.org on 2020/12/10 06:56:35 UTC
[iotdb] branch master updated: [To rel/0.11] Fix sync failed bug
(#2241) (#2242)
This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 678c2bf [To rel/0.11] Fix sync failed bug (#2241) (#2242)
678c2bf is described below
commit 678c2bf8699bb5f1962c6fd1865481b18148402c
Author: Jialin Qiao <qj...@mails.tsinghua.edu.cn>
AuthorDate: Thu Dec 10 14:56:20 2020 +0800
[To rel/0.11] Fix sync failed bug (#2241) (#2242)
---
.../java/org/apache/iotdb/db/sync/sender/transfer/SyncClient.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/sync/sender/transfer/SyncClient.java b/server/src/main/java/org/apache/iotdb/db/sync/sender/transfer/SyncClient.java
index 215fc77..838d74e 100644
--- a/server/src/main/java/org/apache/iotdb/db/sync/sender/transfer/SyncClient.java
+++ b/server/src/main/java/org/apache/iotdb/db/sync/sender/transfer/SyncClient.java
@@ -278,9 +278,9 @@ public class SyncClient implements ISyncClient {
.getTransport(new TSocket(serverIp, serverPort, TIMEOUT_MS));
TProtocol protocol = null;
if (IoTDBDescriptor.getInstance().getConfig().isRpcThriftCompressionEnable()) {
- protocol = new TBinaryProtocol(transport);
- } else {
protocol = new TCompactProtocol(transport);
+ } else {
+ protocol = new TBinaryProtocol(transport);
}
serviceClient = new SyncService.Client(protocol);