Skip to content

Commit

Permalink
Merge pull request #23149 from oleiman/topic-config/default-initializ…
Browse files Browse the repository at this point in the history
…ation

c/topic_config: Explicitly initialize non-class fields
  • Loading branch information
oleiman authored Aug 30, 2024
2 parents d668713 + c75b2b3 commit 0cfc85f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/v/cluster/topic_configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0cfc85f

Please sign in to comment.