Commit d8d80bd5 authored by ParadoxV5's avatar ParadoxV5 Committed by Andrew Hutchings

Fix a couple of `my_snprintf` arg mismatches

This commit backports two fixes from #3360’s vast discovery.
parent 35c732cd
...@@ -7285,7 +7285,7 @@ int main(int argc, char **argv) ...@@ -7285,7 +7285,7 @@ int main(int argc, char **argv)
goto err; goto err;
connection_pool.for_each_connection([](MYSQL *c) { connection_pool.for_each_connection([](MYSQL *c) {
if (start_transaction(c)) if (start_transaction(c))
maybe_die(EX_MYSQLERR, "Failed to start transaction on connection ID %u", mysql->thread_id); maybe_die(EX_MYSQLERR, "Failed to start transaction on connection ID %lu", mysql->thread_id);
}); });
} }
......
...@@ -3901,7 +3901,8 @@ bool MYSQL_BIN_LOG::open(const char *log_name, ...@@ -3901,7 +3901,8 @@ bool MYSQL_BIN_LOG::open(const char *log_name,
if (!gtid_index) if (!gtid_index)
sql_print_information("Could not create GTID index for binlog " sql_print_information("Could not create GTID index for binlog "
"file '%s'. Accesses to this binlog file will " "file '%s'. Accesses to this binlog file will "
"fallback to slower sequential scan."); "fallback to slower sequential scan.",
log_file_name);
} }
else else
gtid_index= nullptr; gtid_index= nullptr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment