Skip to content

Commit

Permalink
c/topic_config: Explicitly initialize non-class fields
Browse files Browse the repository at this point in the history
Since we need a default constructor to keep serde happy.
  • Loading branch information
oleiman committed Aug 30, 2024
1 parent f6958c8 commit c75b2b3
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 c75b2b3

Please sign in to comment.