Commit 9d5767cf authored by Nirbhay Choubey's avatar Nirbhay Choubey

Post-merge fix.

parent db2e21bf
......@@ -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);
......
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