diff options
author | mskold/marty@linux.site <> | 2006-11-10 11:38:54 +0100 |
---|---|---|
committer | mskold/marty@linux.site <> | 2006-11-10 11:38:54 +0100 |
commit | 6ad1b4f92c9d6a12625a8aa65f1c9d382a870e72 (patch) | |
tree | b96d3600e3e38a8e8d192f5382405b8b455773b3 /sql/ha_ndbcluster.cc | |
parent | b7cc16c7cc19393768ec5082a4d20cddf4ca7502 (diff) | |
parent | 5d96bcedea8c1dc6a1c1f991619f3711735fe3ac (diff) | |
download | mariadb-git-6ad1b4f92c9d6a12625a8aa65f1c9d382a870e72.tar.gz |
Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.1
into mysql.com:/windows/Linux_space/MySQL/mysql-5.1-new-ndb
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r-- | sql/ha_ndbcluster.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc index 9554a6fdf93..cb5892e3481 100644 --- a/sql/ha_ndbcluster.cc +++ b/sql/ha_ndbcluster.cc @@ -6510,7 +6510,7 @@ static int ndbcluster_init(void *p) } { char buf[128]; - my_snprintf(buf, sizeof(buf), "mysqld --server-id=%d", server_id); + my_snprintf(buf, sizeof(buf), "mysqld --server-id=%lu", server_id); g_ndb_cluster_connection->set_name(buf); } g_ndb_cluster_connection->set_optimized_node_selection @@ -7267,7 +7267,7 @@ int handle_trailing_share(NDB_SHARE *share) share->key_length= min_key_length; } share->key_length= - my_snprintf(share->key, min_key_length + 1, "#leak%d", + my_snprintf(share->key, min_key_length + 1, "#leak%lu", trailing_share_id++); } /* Keep it for possible the future trailing free */ @@ -9804,12 +9804,12 @@ ndbcluster_show_status(handlerton *hton, THD* thd, stat_print_fn *stat_print, update_status_variables(g_ndb_cluster_connection); buflen= my_snprintf(buf, sizeof(buf), - "cluster_node_id=%u, " + "cluster_node_id=%ld, " "connected_host=%s, " - "connected_port=%u, " - "number_of_data_nodes=%u, " - "number_of_ready_data_nodes=%u, " - "connect_count=%u", + "connected_port=%ld, " + "number_of_data_nodes=%ld, " + "number_of_ready_data_nodes=%ld, " + "connect_count=%ld", ndb_cluster_node_id, ndb_connected_host, ndb_connected_port, @@ -10695,7 +10695,8 @@ static int ndbcluster_fill_files_table(handlerton *hton, table->field[IS_FILES_VERSION]->store(uf.getObjectVersion()); char extra[100]; - int len= my_snprintf(extra,sizeof(extra),"CLUSTER_NODE=%u;UNDO_BUFFER_SIZE=%lu",id,lfg.getUndoBufferSize()); + int len= my_snprintf(extra,sizeof(extra),"CLUSTER_NODE=%u;UNDO_BUFFER_SIZE=%lu", + id, (ulong) lfg.getUndoBufferSize()); table->field[IS_FILES_EXTRA]->set_notnull(); table->field[IS_FILES_EXTRA]->store(extra, len, system_charset_info); schema_table_store_record(thd, table); @@ -10712,7 +10713,6 @@ static int ndbcluster_fill_files_table(handlerton *hton, for (i= 0; i < lfglist.count; i++) { NdbDictionary::Dictionary::List::Element& elt= lfglist.elements[i]; - unsigned id; NdbDictionary::LogfileGroup lfg= dict->getLogfileGroup(elt.name); ndberr= dict->getNdbError(); @@ -10750,7 +10750,7 @@ static int ndbcluster_fill_files_table(handlerton *hton, char extra[100]; int len= my_snprintf(extra,sizeof(extra), "UNDO_BUFFER_SIZE=%lu", - lfg.getUndoBufferSize()); + (ulong) lfg.getUndoBufferSize()); table->field[IS_FILES_EXTRA]->set_notnull(); table->field[IS_FILES_EXTRA]->store(extra, len, system_charset_info); schema_table_store_record(thd, table); |