Commit 15eebdc0 authored by unknown's avatar unknown

ha_ndbcluster.cc:

  Bug #25668    - corrected patch after test failures


sql/ha_ndbcluster.cc:
  Bug #25668    - corrected patch after test failures
parent 1c24fc31
...@@ -6109,25 +6109,32 @@ ndb_get_table_statistics(ha_ndbcluster* file, bool report_error, Ndb* ndb, ...@@ -6109,25 +6109,32 @@ ndb_get_table_statistics(ha_ndbcluster* file, bool report_error, Ndb* ndb,
DBUG_RETURN(0); DBUG_RETURN(0);
retry: retry:
if(report_error)
{ {
ndb->closeTransaction(pTrans); if (file && pTrans)
pTrans= NULL;
}
if (error.status == NdbError::TemporaryError && retries--)
{ {
my_sleep(retry_sleep); reterr= file->ndb_err(pTrans);
continue;
} }
if(report_error) else
{ {
const NdbError& tmp= error; const NdbError& tmp= error;
ERR_PRINT(tmp); ERR_PRINT(tmp);
reterr= ndb_to_mysql_error(&tmp); reterr= ndb_to_mysql_error(&tmp);
} }
}
else else
reterr= error.code; reterr= error.code;
if (pTrans)
{
ndb->closeTransaction(pTrans);
pTrans= NULL;
}
if (error.status == NdbError::TemporaryError && retries--)
{
my_sleep(retry_sleep);
continue;
}
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