ha_ndbcluster.cc:

  Bug #25668    - corrected patch after test failures
parent 1d6fe0ff
...@@ -6109,7 +6109,23 @@ ndb_get_table_statistics(ha_ndbcluster* file, bool report_error, Ndb* ndb, ...@@ -6109,7 +6109,23 @@ ndb_get_table_statistics(ha_ndbcluster* file, bool report_error, Ndb* ndb,
DBUG_RETURN(0); DBUG_RETURN(0);
retry: retry:
if(report_error)
{
if (file && pTrans)
{
reterr= file->ndb_err(pTrans);
}
else
{
const NdbError& tmp= error;
ERR_PRINT(tmp);
reterr= ndb_to_mysql_error(&tmp);
}
}
else
reterr= error.code;
if (pTrans)
{ {
ndb->closeTransaction(pTrans); ndb->closeTransaction(pTrans);
pTrans= NULL; pTrans= NULL;
...@@ -6119,15 +6135,6 @@ ndb_get_table_statistics(ha_ndbcluster* file, bool report_error, Ndb* ndb, ...@@ -6119,15 +6135,6 @@ ndb_get_table_statistics(ha_ndbcluster* file, bool report_error, Ndb* ndb,
my_sleep(retry_sleep); my_sleep(retry_sleep);
continue; continue;
} }
if(report_error)
{
const NdbError& tmp= error;
ERR_PRINT(tmp);
reterr= ndb_to_mysql_error(&tmp);
}
else
reterr= error.code;
break; break;
} while(1); } while(1);
DBUG_PRINT("exit", ("failed, reterr: %u, NdbError %u(%s)", reterr, DBUG_PRINT("exit", ("failed, reterr: %u, NdbError %u(%s)", reterr,
......
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