Loading sql/ha_ndbcluster.cc +9 −2 Original line number Diff line number Diff line Loading @@ -147,6 +147,7 @@ Thd_ndb::Thd_ndb() ndb= new Ndb(g_ndb_cluster_connection, ""); lock_count= 0; count= 0; error= 0; } Thd_ndb::~Thd_ndb() Loading Loading @@ -179,6 +180,11 @@ void ha_ndbcluster::records_update() info->records= rows; } } { THD *thd= current_thd; if (((Thd_ndb*)(thd->transaction.thd_ndb))->error) info->no_uncommitted_rows_count= 0; } records= info->records+ info->no_uncommitted_rows_count; DBUG_VOID_RETURN; } Loading @@ -186,8 +192,8 @@ void ha_ndbcluster::records_update() void ha_ndbcluster::no_uncommitted_rows_execute_failure() { DBUG_ENTER("ha_ndbcluster::no_uncommitted_rows_execute_failure"); struct Ndb_table_local_info *info= (struct Ndb_table_local_info *)m_table_info; info->no_uncommitted_rows_count= 0; THD *thd= current_thd; ((Thd_ndb*)(thd->transaction.thd_ndb))->error= 1; DBUG_VOID_RETURN; } Loading Loading @@ -223,6 +229,7 @@ void ha_ndbcluster::no_uncommitted_rows_reset(THD *thd) { DBUG_ENTER("ha_ndbcluster::no_uncommitted_rows_reset"); ((Thd_ndb*)(thd->transaction.thd_ndb))->count++; ((Thd_ndb*)(thd->transaction.thd_ndb))->error= 0; DBUG_VOID_RETURN; } Loading sql/ha_ndbcluster.h +1 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,7 @@ class Thd_ndb { Ndb *ndb; ulong count; uint lock_count; int error; }; class ha_ndbcluster: public handler Loading Loading
sql/ha_ndbcluster.cc +9 −2 Original line number Diff line number Diff line Loading @@ -147,6 +147,7 @@ Thd_ndb::Thd_ndb() ndb= new Ndb(g_ndb_cluster_connection, ""); lock_count= 0; count= 0; error= 0; } Thd_ndb::~Thd_ndb() Loading Loading @@ -179,6 +180,11 @@ void ha_ndbcluster::records_update() info->records= rows; } } { THD *thd= current_thd; if (((Thd_ndb*)(thd->transaction.thd_ndb))->error) info->no_uncommitted_rows_count= 0; } records= info->records+ info->no_uncommitted_rows_count; DBUG_VOID_RETURN; } Loading @@ -186,8 +192,8 @@ void ha_ndbcluster::records_update() void ha_ndbcluster::no_uncommitted_rows_execute_failure() { DBUG_ENTER("ha_ndbcluster::no_uncommitted_rows_execute_failure"); struct Ndb_table_local_info *info= (struct Ndb_table_local_info *)m_table_info; info->no_uncommitted_rows_count= 0; THD *thd= current_thd; ((Thd_ndb*)(thd->transaction.thd_ndb))->error= 1; DBUG_VOID_RETURN; } Loading Loading @@ -223,6 +229,7 @@ void ha_ndbcluster::no_uncommitted_rows_reset(THD *thd) { DBUG_ENTER("ha_ndbcluster::no_uncommitted_rows_reset"); ((Thd_ndb*)(thd->transaction.thd_ndb))->count++; ((Thd_ndb*)(thd->transaction.thd_ndb))->error= 0; DBUG_VOID_RETURN; } Loading
sql/ha_ndbcluster.h +1 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,7 @@ class Thd_ndb { Ndb *ndb; ulong count; uint lock_count; int error; }; class ha_ndbcluster: public handler Loading