From 0c449f610db0e0a255b0e110775f2a3c044c37e7 Mon Sep 17 00:00:00 2001 From: Ilya Golshtein Date: Thu, 4 Jul 2024 12:53:07 +0000 Subject: [PATCH] Race in rd_kafka_fetch_pos2str --- src/rdkafka_partition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rdkafka_partition.c b/src/rdkafka_partition.c index 451d06eb08..0f19f1c184 100644 --- a/src/rdkafka_partition.c +++ b/src/rdkafka_partition.c @@ -4567,7 +4567,7 @@ void rd_kafka_partition_leader_destroy_free(void *ptr) { const char *rd_kafka_fetch_pos2str(const rd_kafka_fetch_pos_t fetchpos) { static RD_TLS char ret[2][64]; - static int idx; + static RD_TLS int idx; idx = (idx + 1) % 2;