You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use cppkafka to write a consumer, and a "Message" actually called "rd_kafka_message_destroy" to free the underneath "rd_kafka_message_t". But in its subseqent called function "rd_kafka_msg_destroy", this function bypassed payload free:
if (rkm->rkm_flags & RD_KAFKA_MSG_F_FREE && rkm->rkm_payload)
rd_free(rkm->rkm_payload);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I use cppkafka to write a consumer, and a "Message" actually called "rd_kafka_message_destroy" to free the underneath "rd_kafka_message_t". But in its subseqent called function "rd_kafka_msg_destroy", this function bypassed payload free:
rkm->rkm_flags is alway 0.
How can I set this flag to "RD_KAFKA_MSG_F_FREE"?
Beta Was this translation helpful? Give feedback.
All reactions