Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix KafkaMessage::parse_record_batch #1680

Merged
merged 2 commits into from
Jan 8, 2025
Merged

fix KafkaMessage::parse_record_batch #1680

merged 2 commits into from
Jan 8, 2025

Conversation

kedixa
Copy link
Contributor

@kedixa kedixa commented Jan 8, 2025

No description provided.

@@ -1450,8 +1450,9 @@ int KafkaMessage::parse_record_batch(void **buf, size_t *size,
return 1;

KafkaBlock block;
bool compressed = ((hdr.attributes & 7) != 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bool compressed = (hdr.attribute & 7);
不用写 != 0吧。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还是改成compress_type吧。

@Barenboim Barenboim merged commit 90e32e3 into sogou:master Jan 8, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants