From dd01c46f364a06d01d2e0a78015c243c82a826f9 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 5 Feb 2007 13:21:18 +0700 Subject: Bug #26021 - valgrind reports error regarding handle_trailing_share and client thread share usage - add ndb_share connect_count to decide if share can be reused to setup replication sql/ha_ndbcluster.cc: add additional logging info remove inline real_free_share (not needed) and confuses valgrind printout sql/ha_ndbcluster.h: add connect_count to ndb_share to enable checking for version of share sql/ha_ndbcluster_binlog.cc: use ndb_share connect_count to decide if share can be reused to setup replication - share will be created early if table is accessed prior to handler setting up binlog stuff, see bug 26021 sql/ha_ndbcluster_binlog.h: remove inline real_free_share (not needed) and confuses valgrind printout --- sql/ha_ndbcluster.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/ha_ndbcluster.h') diff --git a/sql/ha_ndbcluster.h b/sql/ha_ndbcluster.h index 5b6900766b6..63665fde0f8 100644 --- a/sql/ha_ndbcluster.h +++ b/sql/ha_ndbcluster.h @@ -108,6 +108,7 @@ typedef struct st_ndbcluster_share { char *table_name; Ndb::TupleIdRange tuple_id_range; #ifdef HAVE_NDB_BINLOG + uint32 connect_count; uint32 flags; NdbEventOperation *op; NdbEventOperation *op_old; // for rename table -- cgit v1.2.1