Skip to content

Commit

Permalink
merge two the same consistently 'if' clauses into one
Browse files Browse the repository at this point in the history
we have two the same 'if' clauses that check opt_bin_log argument
in mysqld.cc and both clauses go successively one after another.
Let's merge them into one
  • Loading branch information
0xAX authored and Sergey Vojtovich committed Feb 17, 2018
1 parent f8bdf4d commit afc56a5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sql/mysqld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5299,10 +5299,7 @@ static int init_server_components()
{
unireg_abort(1);
}
}

if (opt_bin_log)
{
log_bin_basename=
rpl_make_log_name(opt_bin_logname, pidfile_name,
opt_bin_logname ? "" : "-bin");
Expand Down

0 comments on commit afc56a5

Please sign in to comment.