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
63fca63e
Commit
63fca63e
authored
Jul 09, 2004
by
mysqldev@o2k.irixworld.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Irix64 mipspro ndb compile fixes
parent
d8ef310a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
17 deletions
+26
-17
ndb/src/cw/cpcd/CPCD.cpp
ndb/src/cw/cpcd/CPCD.cpp
+3
-2
ndb/src/cw/cpcd/Process.cpp
ndb/src/cw/cpcd/Process.cpp
+4
-4
ndb/src/mgmclient/CommandInterpreter.cpp
ndb/src/mgmclient/CommandInterpreter.cpp
+12
-9
ndb/src/ndbapi/NdbDictionaryImpl.cpp
ndb/src/ndbapi/NdbDictionaryImpl.cpp
+4
-0
ndb/tools/desc.cpp
ndb/tools/desc.cpp
+3
-2
No files found.
ndb/src/cw/cpcd/CPCD.cpp
View file @
63fca63e
...
...
@@ -351,8 +351,9 @@ CPCD::loadProcessList(){
sess
.
loadFile
();
loadingProcessList
=
false
;
size_t
i
;
Vector
<
int
>
temporary
;
for
(
size_t
i
=
0
;
i
<
m_processes
.
size
();
i
++
){
for
(
i
=
0
;
i
<
m_processes
.
size
();
i
++
){
Process
*
proc
=
m_processes
[
i
];
proc
->
readPid
();
if
(
proc
->
m_processType
==
TEMPORARY
){
...
...
@@ -360,7 +361,7 @@ CPCD::loadProcessList(){
}
}
for
(
size_t
i
=
0
;
i
<
temporary
.
size
();
i
++
){
for
(
i
=
0
;
i
<
temporary
.
size
();
i
++
){
RequestStatus
rs
;
undefineProcess
(
&
rs
,
temporary
[
i
]);
}
...
...
ndb/src/cw/cpcd/Process.cpp
View file @
63fca63e
...
...
@@ -256,7 +256,7 @@ set_ulimit(const BaseString & pair){
void
CPCD
::
Process
::
do_exec
()
{
size_t
i
;
setup_environment
(
m_env
.
c_str
());
char
**
argv
=
BaseString
::
argify
(
m_path
.
c_str
(),
m_args
.
c_str
());
...
...
@@ -272,7 +272,7 @@ CPCD::Process::do_exec() {
Vector
<
BaseString
>
ulimit
;
m_ulimit
.
split
(
ulimit
);
for
(
size_t
i
=
0
;
i
<
ulimit
.
size
();
i
++
){
for
(
i
=
0
;
i
<
ulimit
.
size
();
i
++
){
if
(
ulimit
[
i
].
trim
().
length
()
>
0
&&
set_ulimit
(
ulimit
[
i
])
!=
0
){
_exit
(
1
);
}
...
...
@@ -286,7 +286,7 @@ CPCD::Process::do_exec() {
BaseString
*
redirects
[]
=
{
&
m_stdin
,
&
m_stdout
,
&
m_stderr
};
int
fds
[
3
];
for
(
i
nt
i
=
0
;
i
<
3
;
i
++
){
for
(
i
=
0
;
i
<
3
;
i
++
){
if
(
redirects
[
i
]
->
empty
()){
#ifndef DEBUG
dup2
(
fd
,
i
);
...
...
@@ -319,7 +319,7 @@ CPCD::Process::do_exec() {
}
/* Close all filedescriptors */
for
(
i
nt
i
=
STDERR_FILENO
+
1
;
i
<
getdtablesize
();
i
++
)
for
(
i
=
STDERR_FILENO
+
1
;
i
<
getdtablesize
();
i
++
)
close
(
i
);
execv
(
m_path
.
c_str
(),
argv
);
...
...
ndb/src/mgmclient/CommandInterpreter.cpp
View file @
63fca63e
...
...
@@ -634,7 +634,8 @@ CommandInterpreter::executeHelp(char* parameters)
void
CommandInterpreter
::
executeShow
(
char
*
parameters
)
{
{
int
i
;
connect
();
if
(
emptyString
(
parameters
))
{
ndbout
<<
"Cluster Configuration"
<<
endl
...
...
@@ -652,7 +653,7 @@ CommandInterpreter::executeShow(char* parameters)
api_nodes
=
0
,
mgm_nodes
=
0
;
for
(
i
nt
i
=
0
;
i
<
state
->
no_of_nodes
;
i
++
)
{
for
(
i
=
0
;
i
<
state
->
no_of_nodes
;
i
++
)
{
switch
(
state
->
node_states
[
i
].
node_type
)
{
case
NDB_MGM_NODE_TYPE_API
:
api_nodes
++
;
...
...
@@ -673,7 +674,7 @@ CommandInterpreter::executeShow(char* parameters)
<<
" NDB Node(s)"
<<
endl
;
for
(
i
nt
i
=
0
;
i
<
state
->
no_of_nodes
;
i
++
)
{
for
(
i
=
0
;
i
<
state
->
no_of_nodes
;
i
++
)
{
if
(
state
->
node_states
[
i
].
node_type
==
NDB_MGM_NODE_TYPE_NDB
)
{
ndbout
<<
"DB node:
\t
"
<<
state
->
node_states
[
i
].
node_id
;
if
(
state
->
node_states
[
i
].
version
!=
0
)
{
...
...
@@ -695,7 +696,7 @@ CommandInterpreter::executeShow(char* parameters)
<<
" API Node(s)"
<<
endl
;
for
(
i
nt
i
=
0
;
i
<
state
->
no_of_nodes
;
i
++
)
{
for
(
i
=
0
;
i
<
state
->
no_of_nodes
;
i
++
)
{
if
(
state
->
node_states
[
i
].
node_type
==
NDB_MGM_NODE_TYPE_API
)
{
ndbout
<<
"API node:
\t
"
<<
state
->
node_states
[
i
].
node_id
;
if
(
state
->
node_states
[
i
].
version
!=
0
)
{
...
...
@@ -716,7 +717,7 @@ CommandInterpreter::executeShow(char* parameters)
<<
" MGM Node(s)"
<<
endl
;
for
(
i
nt
i
=
0
;
i
<
state
->
no_of_nodes
;
i
++
)
{
for
(
i
=
0
;
i
<
state
->
no_of_nodes
;
i
++
)
{
if
(
state
->
node_states
[
i
].
node_type
==
NDB_MGM_NODE_TYPE_MGM
)
{
ndbout
<<
"MGM node:
\t
"
<<
state
->
node_states
[
i
].
node_id
;
if
(
state
->
node_states
[
i
].
version
!=
0
)
{
...
...
@@ -759,6 +760,7 @@ CommandInterpreter::executeShow(char* parameters)
void
CommandInterpreter
::
executeClusterLog
(
char
*
parameters
)
{
int
i
;
connect
();
if
(
parameters
!=
0
&&
strlen
(
parameters
)
!=
0
)
{
enum
ndb_mgm_clusterlog_level
severity
=
NDB_MGM_CLUSTERLOG_ALL
;
...
...
@@ -846,10 +848,10 @@ CommandInterpreter::executeClusterLog(char* parameters)
ndbout
<<
"Cluster logging is disabled."
<<
endl
;
for
(
i
nt
i
=
0
;
i
<
7
;
i
++
)
for
(
i
=
0
;
i
<
7
;
i
++
)
printf
(
"enabled[%d] = %d
\n
"
,
i
,
enabled
[
i
]);
ndbout
<<
"Severities enabled: "
;
for
(
i
nt
i
=
1
;
i
<
7
;
i
++
)
{
for
(
i
=
1
;
i
<
7
;
i
++
)
{
if
(
enabled
[
i
])
ndbout
<<
names
[
i
]
<<
" "
;
}
...
...
@@ -1298,14 +1300,15 @@ CommandInterpreter::executeLog(int processId,
return
;
}
int
len
=
0
;
for
(
Uint32
i
=
0
;
i
<
blocks
.
size
();
i
++
)
{
Uint32
i
;
for
(
i
=
0
;
i
<
blocks
.
size
();
i
++
)
{
ndbout_c
(
"blocks %s %d"
,
blocks
[
i
],
strlen
(
blocks
[
i
]));
len
+=
strlen
(
blocks
[
i
]);
}
len
+=
blocks
.
size
()
*
2
;
char
*
blockNames
=
(
char
*
)
malloc
(
len
);
for
(
Uint32
i
=
0
;
i
<
blocks
.
size
();
i
++
)
{
for
(
i
=
0
;
i
<
blocks
.
size
();
i
++
)
{
strcat
(
blockNames
,
blocks
[
i
]);
strcat
(
blockNames
,
"|"
);
}
...
...
ndb/src/ndbapi/NdbDictionaryImpl.cpp
View file @
63fca63e
...
...
@@ -2816,3 +2816,7 @@ NdbDictInterface::execLIST_TABLES_CONF(NdbApiSignal* signal,
template
class
Vector
<
Uint32
>;
template
class
Vector
<
Vector
<
Uint32
>
>
;
template
class
Vector
<
NdbTableImpl
*
>;
template
class
Vector
<
NdbColumnImpl
*
>;
template
class
Bitmask
<
4
>;
ndb/tools/desc.cpp
View file @
63fca63e
...
...
@@ -73,7 +73,8 @@ int main(int argc, const char** argv){
ndbout
<<
"-- Indexes -- "
<<
endl
;
ndbout
<<
"PRIMARY KEY("
;
for
(
unsigned
j
=
0
;
j
<
pTab
->
getNoOfPrimaryKeys
();
j
++
)
unsigned
j
;
for
(
j
=
0
;
j
<
pTab
->
getNoOfPrimaryKeys
();
j
++
)
{
const
NdbDictionary
::
Column
*
col
=
pTab
->
getColumn
(
j
);
ndbout
<<
col
->
getName
();
...
...
@@ -82,7 +83,7 @@ int main(int argc, const char** argv){
}
ndbout
<<
") - UniqueHashIndex"
<<
endl
;
for
(
unsigned
j
=
0
;
j
<
list
.
count
;
j
++
)
{
for
(
j
=
0
;
j
<
list
.
count
;
j
++
)
{
NdbDictionary
::
Dictionary
::
List
::
Element
&
elt
=
list
.
elements
[
j
];
const
NdbDictionary
::
Index
*
pIdx
=
dict
->
getIndex
(
elt
.
name
,
argv
[
i
]);
if
(
!
pIdx
){
...
...
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