You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2022/08/02 09:30:15 UTC

[iotdb] branch ml_0729_test_exp1 updated: fix bug

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

xingtanzjr pushed a commit to branch ml_0729_test_exp1
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/ml_0729_test_exp1 by this push:
     new 998cdda5f1 fix bug
998cdda5f1 is described below

commit 998cdda5f19a6e97b3af7fda3fd037629b1026a4
Author: Jinrui.Zhang <xi...@gmail.com>
AuthorDate: Tue Aug 2 17:29:57 2022 +0800

    fix bug
---
 .../apache/iotdb/consensus/common/request/IndexedConsensusRequest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/consensus/src/main/java/org/apache/iotdb/consensus/common/request/IndexedConsensusRequest.java b/consensus/src/main/java/org/apache/iotdb/consensus/common/request/IndexedConsensusRequest.java
index f90dc6d86b..1a61cf3a09 100644
--- a/consensus/src/main/java/org/apache/iotdb/consensus/common/request/IndexedConsensusRequest.java
+++ b/consensus/src/main/java/org/apache/iotdb/consensus/common/request/IndexedConsensusRequest.java
@@ -68,7 +68,7 @@ public class IndexedConsensusRequest implements IConsensusRequest {
 
   public List<ByteBuffer> buildSerializedRequests() {
     List<ByteBuffer> result = new LinkedList<>();
-    this.requests.forEach(r -> this.serializedRequests.add(r.serializeToByteBuffer()));
+    this.requests.forEach(r -> result.add(r.serializeToByteBuffer()));
     return result;
   }