Skip to content

Commit 6ec3cd9

Browse files
author
tomas@whalegate.ndb.mysql.com
committed
set name for ndb tools
1 parent 49d2135 commit 6ec3cd9

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

storage/ndb/tools/delete_all.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ int main(int argc, char** argv){
7575
return NDBT_ProgramExit(NDBT_WRONGARGS);
7676

7777
Ndb_cluster_connection con(opt_connect_str);
78+
con.set_name("ndb_delete_all");
7879
if(con.connect(12, 5, 1) != 0)
7980
{
8081
ndbout << "Unable to connect to management server." << endl;

storage/ndb/tools/desc.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ int main(int argc, char** argv){
8181
return NDBT_ProgramExit(NDBT_WRONGARGS);
8282

8383
Ndb_cluster_connection con(opt_connect_str);
84+
con.set_name("ndb_desc");
8485
if(con.connect(12, 5, 1) != 0)
8586
{
8687
ndbout << "Unable to connect to management server." << endl;

storage/ndb/tools/drop_index.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ int main(int argc, char** argv){
6161
}
6262

6363
Ndb_cluster_connection con(opt_connect_str);
64+
con.set_name("ndb_drop_index");
6465
if(con.connect(12, 5, 1) != 0)
6566
{
6667
return NDBT_ProgramExit(NDBT_FAILED);

storage/ndb/tools/drop_tab.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ int main(int argc, char** argv){
6161
}
6262

6363
Ndb_cluster_connection con(opt_connect_str);
64+
con.set_name("ndb_drop_table");
6465
if(con.connect(12, 5, 1) != 0)
6566
{
6667
ndbout << "Unable to connect to management server." << endl;

storage/ndb/tools/listTables.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ int main(int argc, char** argv){
307307
_tabname = argv[0];
308308

309309
ndb_cluster_connection = new Ndb_cluster_connection(opt_connect_str);
310+
ndb_cluster_connection->set_name("ndb_show_tables");
310311
if (ndb_cluster_connection->connect(12,5,1))
311312
fatal("Unable to connect to management server.");
312313
if (ndb_cluster_connection->wait_until_ready(30,0) < 0)

storage/ndb/tools/select_all.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ int main(int argc, char** argv){
129129
}
130130

131131
Ndb_cluster_connection con(opt_connect_str);
132+
con.set_name("ndb_select_all");
132133
if(con.connect(12, 5, 1) != 0)
133134
{
134135
ndbout << "Unable to connect to management server." << endl;

storage/ndb/tools/select_count.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ int main(int argc, char** argv){
8383
}
8484

8585
Ndb_cluster_connection con(opt_connect_str);
86+
con.set_name("ndb_select_count");
8687
if(con.connect(12, 5, 1) != 0)
8788
{
8889
ndbout << "Unable to connect to management server." << endl;

0 commit comments

Comments
 (0)