Browse Source

Bug#26898, Alter table to empty merge from ndb causes mysqld to crash

pull/73/head
Justin.He/justin.he@dev3-240.dev.cn.tlan 19 years ago
parent
commit
9734a8eac7
  1. 4
      sql/ha_ndbcluster.cc

4
sql/ha_ndbcluster.cc

@ -4366,7 +4366,9 @@ static int ndbcluster_commit(handlerton *hton, THD *thd, bool all)
DBUG_PRINT("transaction",("%s",
trans == thd_ndb->stmt ?
"stmt" : "all"));
DBUG_ASSERT(ndb && trans);
DBUG_ASSERT(ndb);
if (trans == NULL)
DBUG_RETURN(0);
if (execute_commit(thd,trans) != 0)
{

Loading…
Cancel
Save