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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
3b413775
Commit
3b413775
authored
Aug 15, 2006
by
gni/root@dev3-127.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge gni@bk-internal.mysql.com:/home/bk/mysql-5.1-ndb
into dev3-127.(none):/mnt/mysql/home/ngb/mysql-5.1-ndb-bj
parents
34d0ac17
9522f82a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+9
-9
No files found.
sql/ha_ndbcluster.cc
View file @
3b413775
...
...
@@ -168,8 +168,8 @@ static long ndb_cluster_node_id= 0;
static
const
char
*
ndb_connected_host
=
0
;
static
long
ndb_connected_port
=
0
;
static
long
ndb_number_of_replicas
=
0
;
long
ndb_number_of_
storage
_nodes
=
0
;
long
ndb_number_of_ready_
storage
_nodes
=
0
;
long
ndb_number_of_
data
_nodes
=
0
;
long
ndb_number_of_ready_
data
_nodes
=
0
;
long
ndb_connect_count
=
0
;
static
int
update_status_variables
(
Ndb_cluster_connection
*
c
)
...
...
@@ -178,8 +178,8 @@ static int update_status_variables(Ndb_cluster_connection *c)
ndb_connected_port
=
c
->
get_connected_port
();
ndb_connected_host
=
c
->
get_connected_host
();
ndb_number_of_replicas
=
0
;
ndb_number_of_
storage_nodes
=
c
->
no_db_nodes
();
ndb_number_of_
ready_storage_nodes
=
c
->
get_no_ready
();
ndb_number_of_
ready_data_nodes
=
c
->
get_no_ready
();
ndb_number_of_
data_nodes
=
c
->
no_db_nodes
();
ndb_connect_count
=
c
->
get_connect_count
();
return
0
;
}
...
...
@@ -189,7 +189,7 @@ SHOW_VAR ndb_status_variables[]= {
{
"config_from_host"
,
(
char
*
)
&
ndb_connected_host
,
SHOW_CHAR_PTR
},
{
"config_from_port"
,
(
char
*
)
&
ndb_connected_port
,
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
}
};
...
...
@@ -9666,14 +9666,14 @@ ndbcluster_show_status(THD* thd, stat_print_fn *stat_print,
"cluster_node_id=%u, "
"connected_host=%s, "
"connected_port=%u, "
"number_of_
storage
_nodes=%u, "
"number_of_ready_
storage
_nodes=%u, "
"number_of_
data
_nodes=%u, "
"number_of_ready_
data
_nodes=%u, "
"connect_count=%u"
,
ndb_cluster_node_id
,
ndb_connected_host
,
ndb_connected_port
,
ndb_number_of_
storage
_nodes
,
ndb_number_of_ready_
storage
_nodes
,
ndb_number_of_
data
_nodes
,
ndb_number_of_ready_
data
_nodes
,
ndb_connect_count
);
if
(
stat_print
(
thd
,
ndbcluster_hton_name
,
ndbcluster_hton_name_length
,
STRING_WITH_LEN
(
"connection"
),
buf
,
buflen
))
...
...
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