Skip to content

Commit 9d4e493

Browse files
committed
Fix line count accidwentally swapped with pre-5.6
Miraculously, **this did not cause *any* test to consistently fail, except for an MTR internal check difference from `rpl.rpl_upgrade_master_info_section`, from how the server `DEFAULT` is different from the MTR default.
1 parent 4f72ef3 commit 9d4e493

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sql/rpl_info_file.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ struct Info_file
305305
Set the default after parsing: While std::from_chars() does not replace
306306
the output if it failed, it does replace if the line is not fully spent.
307307
*/
308-
size_t line_count= i ? static_cast<size_t>(val) : default_line_count;
308+
size_t line_count= i ? default_line_count: static_cast<size_t>(val);
309309
for (; i < line_count; ++i)
310310
{
311311
int c;

0 commit comments

Comments
 (0)