Skip to content

Commit

Permalink
Merge pull request #961 from Barenboim/master
Browse files Browse the repository at this point in the history
set kafka response's correlation id when parsing
  • Loading branch information
Barenboim authored Jun 24, 2022
2 parents 669d46e + 0f61875 commit 635a1e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/protocol/KafkaMessage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2803,11 +2803,13 @@ int KafkaResponse::parse_response()

void *buf = this->parser->msgbuf;
size_t size = this->parser->message_size;
int correlation_id;
int32_t correlation_id;

if (parse_i32(&buf, &size, &correlation_id) < 0)
return -1;

this->correlation_id = correlation_id;

int ret = it->second(&buf, &size);

if (ret < 0)
Expand Down

0 comments on commit 635a1e5

Please sign in to comment.