summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.mysql.com>2007-01-24 09:41:40 +0700
committerunknown <tomas@poseidon.mysql.com>2007-01-24 09:41:40 +0700
commit457d4315568c7d26340bea4be8a2c8d96960916c (patch)
tree5feef96fd0eef050fe2fd9c9de95f86dd88d9f01 /sql/ha_ndbcluster.cc
parent077840fa23d65e1eb60fdd601802b151ff4b54b4 (diff)
downloadmariadb-git-457d4315568c7d26340bea4be8a2c8d96960916c.tar.gz
Bug#25668 mysqld may core if cluster disconnected
- recommit in 4.1
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index fd9a5720e3d..d16e00f4e52 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -5373,7 +5373,7 @@ ndb_get_table_statistics(ha_ndbcluster* file, bool report_error, Ndb* ndb,
retry:
if(report_error)
{
- if (file)
+ if (file && pTrans)
{
reterr= file->ndb_err(pTrans);
}