提交 dda6cf21 编写于 作者: M Matt Howlett 提交者: Magnus Edenhill

Fix fetch request rkbuf size

上级 ff697fd8
......@@ -4088,8 +4088,8 @@ static int rd_kafka_broker_fetch_toppars (rd_kafka_broker_t *rkb, rd_ts_t now) {
rkbuf = rd_kafka_buf_new_request(
rkb, RD_KAFKAP_Fetch, 1,
/* ReplicaId+MaxWaitTime+MinBytes+TopicCnt */
4+4+4+4+
/* ReplicaId+MaxWaitTime+MinBytes+MaxBytes+IsolationLevel+TopicCnt */
4+4+4+4+1+4+
/* N x PartCnt+Partition+FetchOffset+MaxBytes+?TopicNameLen?*/
(rkb->rkb_active_toppar_cnt * (4+4+8+4+40)));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册