mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 15:15:34 +02:00
Post-merge fix.
This commit is contained in:
parent
db2e21bf3e
commit
9d5767cf43
1 changed files with 2 additions and 2 deletions
|
|
@ -458,7 +458,7 @@ static ssize_t sst_prepare_other (const char* method,
|
|||
mysql_real_data_home,
|
||||
wsrep_defaults_file, (int)getpid());
|
||||
|
||||
if (ret < 0 || ret >= (int)sizeof(cmd_str))
|
||||
if (ret < 0 || ret >= cmd_len)
|
||||
{
|
||||
WSREP_ERROR("sst_prepare_other(): snprintf() failed: %d", ret);
|
||||
return (ret < 0 ? ret : -EMSGSIZE);
|
||||
|
|
@ -1025,7 +1025,7 @@ static int sst_donate_other (const char* method,
|
|||
uuid, (long long) seqno,
|
||||
bypass ? " "WSREP_SST_OPT_BYPASS : "");
|
||||
|
||||
if (ret < 0 || ret >= (int) sizeof(cmd_str))
|
||||
if (ret < 0 || ret >= cmd_len)
|
||||
{
|
||||
WSREP_ERROR("sst_donate_other(): snprintf() failed: %d", ret);
|
||||
return (ret < 0 ? ret : -EMSGSIZE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue