summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster_binlog.cc
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.mysql.com>2007-02-06 00:10:56 +0700
committerunknown <tomas@poseidon.mysql.com>2007-02-06 00:10:56 +0700
commit72d99ac243e9c0c04ad37c2ef4449443a11b5553 (patch)
treeddc3c01ce2d32d337a66c21ea849a3eeb8b5438d /sql/ha_ndbcluster_binlog.cc
parent891222d105d8b30a8f3923cf8983797ec5967904 (diff)
parentfa839ece5735c9656279dc0d798e92000c2a7aa9 (diff)
downloadmariadb-git-72d99ac243e9c0c04ad37c2ef4449443a11b5553.tar.gz
Merge poseidon.mysql.com:/home/tomas/mysql-5.1-telco-cga
into poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb sql/ha_ndbcluster_binlog.cc: Auto merged
Diffstat (limited to 'sql/ha_ndbcluster_binlog.cc')
-rw-r--r--sql/ha_ndbcluster_binlog.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/ha_ndbcluster_binlog.cc b/sql/ha_ndbcluster_binlog.cc
index c213a3e049a..fe8050fc57a 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);