Bug#25668 mysqld may core if cluster disconnected

- recommit in 4.1
parent f6e70c14
...@@ -5373,7 +5373,7 @@ ndb_get_table_statistics(ha_ndbcluster* file, bool report_error, Ndb* ndb, ...@@ -5373,7 +5373,7 @@ ndb_get_table_statistics(ha_ndbcluster* file, bool report_error, Ndb* ndb,
retry: retry:
if(report_error) if(report_error)
{ {
if (file) if (file && pTrans)
{ {
reterr= file->ndb_err(pTrans); reterr= file->ndb_err(pTrans);
} }
......
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