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
7cc53b0e
Commit
7cc53b0e
authored
Aug 16, 2006
by
stewart@willster.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge willster.(none):/home/stewart/Documents/MySQL/5.0/ndb
into willster.(none):/home/stewart/Documents/MySQL/5.1/ndb
parents
6a6b5eb1
44e3c3b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
storage/ndb/src/mgmapi/mgmapi.cpp
storage/ndb/src/mgmapi/mgmapi.cpp
+6
-5
storage/ndb/src/mgmclient/CommandInterpreter.cpp
storage/ndb/src/mgmclient/CommandInterpreter.cpp
+2
-0
No files found.
storage/ndb/src/mgmapi/mgmapi.cpp
View file @
7cc53b0e
...
...
@@ -1395,7 +1395,7 @@ ndb_mgm_listen_event_internal(NdbMgmHandle handle, const int filter[],
MGM_END
()
};
CHECK_HANDLE
(
handle
,
-
1
);
const
char
*
hostname
=
ndb_mgm_get_connected_host
(
handle
);
int
port
=
ndb_mgm_get_connected_port
(
handle
);
SocketClient
s
(
hostname
,
port
);
...
...
@@ -1417,19 +1417,20 @@ ndb_mgm_listen_event_internal(NdbMgmHandle handle, const int filter[],
}
args
.
put
(
"filter"
,
tmp
.
c_str
());
}
int
tmp
=
handle
->
socket
;
handle
->
socket
=
sockfd
;
const
Properties
*
reply
;
reply
=
ndb_mgm_call
(
handle
,
stat_reply
,
"listen event"
,
&
args
);
handle
->
socket
=
tmp
;
if
(
reply
==
NULL
)
{
close
(
sockfd
);
CHECK_REPLY
(
reply
,
-
1
);
}
delete
reply
;
return
sockfd
;
}
...
...
storage/ndb/src/mgmclient/CommandInterpreter.cpp
View file @
7cc53b0e
...
...
@@ -1173,6 +1173,7 @@ CommandInterpreter::executeShow(char* parameters)
if
(
it
==
0
){
ndbout_c
(
"Unable to create config iterator"
);
ndb_mgm_destroy_configuration
(
conf
);
return
;
}
NdbAutoPtr
<
ndb_mgm_configuration_iterator
>
ptr
(
it
);
...
...
@@ -1217,6 +1218,7 @@ CommandInterpreter::executeShow(char* parameters)
print_nodes
(
state
,
it
,
"ndb_mgmd"
,
mgm_nodes
,
NDB_MGM_NODE_TYPE_MGM
,
0
);
print_nodes
(
state
,
it
,
"mysqld"
,
api_nodes
,
NDB_MGM_NODE_TYPE_API
,
0
);
// ndbout << helpTextShow;
ndb_mgm_destroy_configuration
(
conf
);
return
;
}
else
if
(
strcasecmp
(
parameters
,
"PROPERTIES"
)
==
0
||
strcasecmp
(
parameters
,
"PROP"
)
==
0
)
{
...
...
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