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:45:21 UTC
[iotdb] 02/02: fix sync client compression bug
This is an automated email from the ASF dual-hosted git repository.
qiaojialin pushed a commit to branch fix_sync_0.11
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 8ef723a10f7894ae83564000b475c01a67cc8bbf
Author: qiaojialin <64...@qq.com>
AuthorDate: Thu Dec 10 14:44:49 2020 +0800
fix sync client compression bug
---
.../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 3423323..fdee50c 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
@@ -277,9 +277,9 @@ public class SyncClient implements ISyncClient {
transport = new TFastFramedTransport(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);
try {