bug, retry handling in "ndb schema propagation" incorrect

parent 029fb75c
......@@ -1041,15 +1041,18 @@ int ndbcluster_log_schema_op(THD *thd, NDB_SHARE *share,
break;
}
err:
if (trans->getNdbError().status == NdbError::TemporaryError)
const NdbError *this_error= trans ?
&trans->getNdbError() : &ndb->getNdbError();
if (this_error->status == NdbError::TemporaryError)
{
if (retries--)
{
if (trans)
ndb->closeTransaction(trans);
continue; // retry
}
}
ndb_error= &trans->getNdbError();
ndb_error= this_error;
break;
}
end:
......@@ -1235,15 +1238,18 @@ ndbcluster_update_slock(THD *thd,
break;
}
err:
if (trans->getNdbError().status == NdbError::TemporaryError)
const NdbError *this_error= trans ?
&trans->getNdbError() : &ndb->getNdbError();
if (this_error->status == NdbError::TemporaryError)
{
if (retries--)
{
if (trans)
ndb->closeTransaction(trans);
continue; // retry
}
}
ndb_error= &trans->getNdbError();
ndb_error= this_error;
break;
}
end:
......
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