Skip to content

Commit

Permalink
repair: initialize row_level_repair: _zero_rows
Browse files Browse the repository at this point in the history
Avoid following UBSAN error:
repair/row_level.cc:2141:7: runtime error: load of value 240, which is not a valid value for type 'bool'

Fixes #5531

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
  • Loading branch information
bhalevy committed Dec 30, 2019
1 parent 27e0aee commit 474ffb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repair/row_level.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2174,7 +2174,7 @@ class row_level_repair {

// If the total size of the `_row_buf` on either of the nodes is zero,
// we set this flag, which is an indication that rows are not synced.
bool _zero_rows;
bool _zero_rows = false;

// Sum of estimated_partitions on all peers
uint64_t _estimated_partitions = 0;
Expand Down

0 comments on commit 474ffb6

Please sign in to comment.