Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
265b9cf6
Commit
265b9cf6
authored
Aug 11, 2006
by
justin.he@qa3-104.qa.cn.tlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#20848 SHOW STATUS LIKE 'NDB%' should be data nodes not storage nodes
use correct termninology
parent
83896aa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+3
-3
No files found.
sql/ha_ndbcluster.cc
View file @
265b9cf6
...
@@ -146,7 +146,7 @@ static long ndb_cluster_node_id= 0;
...
@@ -146,7 +146,7 @@ static long ndb_cluster_node_id= 0;
static
const
char
*
ndb_connected_host
=
0
;
static
const
char
*
ndb_connected_host
=
0
;
static
long
ndb_connected_port
=
0
;
static
long
ndb_connected_port
=
0
;
static
long
ndb_number_of_replicas
=
0
;
static
long
ndb_number_of_replicas
=
0
;
static
long
ndb_number_of_
storage
_nodes
=
0
;
static
long
ndb_number_of_
data
_nodes
=
0
;
static
int
update_status_variables
(
Ndb_cluster_connection
*
c
)
static
int
update_status_variables
(
Ndb_cluster_connection
*
c
)
{
{
...
@@ -154,7 +154,7 @@ static int update_status_variables(Ndb_cluster_connection *c)
...
@@ -154,7 +154,7 @@ static int update_status_variables(Ndb_cluster_connection *c)
ndb_connected_port
=
c
->
get_connected_port
();
ndb_connected_port
=
c
->
get_connected_port
();
ndb_connected_host
=
c
->
get_connected_host
();
ndb_connected_host
=
c
->
get_connected_host
();
ndb_number_of_replicas
=
0
;
ndb_number_of_replicas
=
0
;
ndb_number_of_
storage
_nodes
=
c
->
no_db_nodes
();
ndb_number_of_
data
_nodes
=
c
->
no_db_nodes
();
return
0
;
return
0
;
}
}
...
@@ -163,7 +163,7 @@ struct show_var_st ndb_status_variables[]= {
...
@@ -163,7 +163,7 @@ struct show_var_st ndb_status_variables[]= {
{
"config_from_host"
,
(
char
*
)
&
ndb_connected_host
,
SHOW_CHAR_PTR
},
{
"config_from_host"
,
(
char
*
)
&
ndb_connected_host
,
SHOW_CHAR_PTR
},
{
"config_from_port"
,
(
char
*
)
&
ndb_connected_port
,
SHOW_LONG
},
{
"config_from_port"
,
(
char
*
)
&
ndb_connected_port
,
SHOW_LONG
},
// {"number_of_replicas", (char*) &ndb_number_of_replicas, SHOW_LONG},
// {"number_of_replicas", (char*) &ndb_number_of_replicas, SHOW_LONG},
{
"number_of_
storage_nodes"
,(
char
*
)
&
ndb_number_of_storage
_nodes
,
SHOW_LONG
},
{
"number_of_
data_nodes"
,(
char
*
)
&
ndb_number_of_data
_nodes
,
SHOW_LONG
},
{
NullS
,
NullS
,
SHOW_LONG
}
{
NullS
,
NullS
,
SHOW_LONG
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment