From fa839ece5735c9656279dc0d798e92000c2a7aa9 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 6 Feb 2007 00:09:45 +0700 Subject: [PATCH] Bug #26021 valgrind warning handle_trailing_share/ndbcluster_free_share invalid read - revert bugfix, needs more work --- sql/ha_ndbcluster_binlog.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc index 5a0089e59ac..55364f31764 100644 --- a/sql/ha_ndbcluster_binlog.cc +++ b/sql/ha_ndbcluster_binlog.cc @@ -2445,8 +2445,10 @@ int ndbcluster_create_binlog_setup(Ndb *ndb, const char *key, pthread_mutex_unlock(&ndbcluster_mutex); DBUG_RETURN(1); } +#ifdef NOT_YET if (share->connect_count != g_ndb_cluster_connection->get_connect_count()) +#endif { handle_trailing_share(share); share= NULL; @@ -2454,11 +2456,14 @@ int ndbcluster_create_binlog_setup(Ndb *ndb, const char *key, } /* Create share which is needed to hold replication information */ +#ifdef NOT_YET if (share) { ++share->use_count; } - else if (!(share= get_share(key, 0, TRUE, TRUE))) + else +#endif + if (!(share= get_share(key, 0, TRUE, TRUE))) { sql_print_error("NDB Binlog: " "allocating table share for %s failed", key);