From c75b2b3daee1eccede59eea6b088475ac974111f Mon Sep 17 00:00:00 2001 From: Oren Leiman Date: Thu, 29 Aug 2024 18:25:12 -0700 Subject: [PATCH] c/topic_config: Explicitly initialize non-class fields Since we need a default constructor to keep serde happy. --- src/v/cluster/topic_configuration.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/v/cluster/topic_configuration.h b/src/v/cluster/topic_configuration.h index 4ce84eb864dc3..37d91c0004504 100644 --- a/src/v/cluster/topic_configuration.h +++ b/src/v/cluster/topic_configuration.h @@ -66,11 +66,11 @@ struct topic_configuration model::topic_namespace tp_ns; // using signed integer because Kafka protocol defines it as signed int - int32_t partition_count; + int32_t partition_count{0}; // using signed integer because Kafka protocol defines it as signed int - int16_t replication_factor; + int16_t replication_factor{0}; // bypass migration restrictions - bool is_migrated; + bool is_migrated{false}; topic_properties properties;