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>
(cherry picked from commit 474ffb6)
  • Loading branch information
bhalevy authored and avikivity committed Feb 16, 2020
1 parent bc07b87 commit fad143a
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 @@ -2191,7 +2191,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 fad143a

Please sign in to comment.