Skip to content

Commit

Permalink
Fix fetch request rkbuf size
Browse files Browse the repository at this point in the history
  • Loading branch information
mhowlett authored and edenhill committed Aug 16, 2019
1 parent ff697fd commit dda6cf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rdkafka_broker.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down

0 comments on commit dda6cf2

Please sign in to comment.