Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDEV-35818: Fix replace_binlog_file info message #3746

Open
wants to merge 1 commit into
base: 11.7
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions sql/log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13257,10 +13257,11 @@ bool Binlog_commit_by_rotate::replace_binlog_file()
DBUG_EXECUTE_IF("simulate_required_size_too_big", required_size= 10000;);
if (required_size > m_cache_data->file_reserved_bytes())
{
sql_print_information("Could not rename binlog cache to binlog(as "
sql_print_information("Could not rename binlog cache to binlog (as "
"requested by --binlog-commit-by-rotate-threshold). "
"Required %llu bytes but only %llu bytes reserved.",
required_size, m_cache_data->file_reserved_bytes());
"Required %zu bytes but only %lu bytes reserved.",
required_size, static_cast<unsigned long>(
m_cache_data->file_reserved_bytes()));
return false;
}

Expand Down