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
95eed721
Commit
95eed721
authored
Oct 23, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove compiler warnings
parent
128a329c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
6 deletions
+13
-6
ndb/src/cw/cpcd/Process.cpp
ndb/src/cw/cpcd/Process.cpp
+2
-1
ndb/src/kernel/blocks/dbutil/DbUtil.cpp
ndb/src/kernel/blocks/dbutil/DbUtil.cpp
+1
-0
ndb/src/mgmsrv/MgmtSrvr.cpp
ndb/src/mgmsrv/MgmtSrvr.cpp
+5
-2
ndb/src/mgmsrv/Services.cpp
ndb/src/mgmsrv/Services.cpp
+3
-1
ndb/tools/desc.cpp
ndb/tools/desc.cpp
+2
-2
No files found.
ndb/src/cw/cpcd/Process.cpp
View file @
95eed721
...
...
@@ -237,6 +237,7 @@ set_ulimit(const BaseString & pair){
}
else
if
(
list
[
0
]
==
"t"
){
_RLIMIT_FIX
(
RLIMIT_CPU
);
}
else
{
res
=
-
11
;
errno
=
EINVAL
;
}
if
(
res
){
...
...
@@ -313,7 +314,7 @@ CPCD::Process::do_exec() {
}
/* Close all filedescriptors */
for
(
i
=
STDERR_FILENO
+
1
;
i
<
getdtablesize
();
i
++
)
for
(
i
=
STDERR_FILENO
+
1
;
(
int
)
i
<
getdtablesize
();
i
++
)
close
(
i
);
execv
(
m_path
.
c_str
(),
argv
);
...
...
ndb/src/kernel/blocks/dbutil/DbUtil.cpp
View file @
95eed721
...
...
@@ -1494,6 +1494,7 @@ DbUtil::execUTIL_SEQUENCE_REQ(Signal* signal){
break
;
default:
ndbrequire
(
false
);
prepOp
=
0
;
// remove warning
}
/**
...
...
ndb/src/mgmsrv/MgmtSrvr.cpp
View file @
95eed721
...
...
@@ -406,11 +406,11 @@ MgmtSrvr::MgmtSrvr(NodeId nodeId,
_blockNumber
(
1
),
// Hard coded block number since it makes it easy to send
// signals to other management servers.
_ownReference
(
0
),
m_local_config
(
local_config
),
m_allocated_resources
(
*
this
),
theSignalIdleList
(
NULL
),
theWaitState
(
WAIT_SUBSCRIBE_CONF
),
m_statisticsListner
(
this
),
m_local_config
(
local_config
)
m_statisticsListner
(
this
)
{
DBUG_ENTER
(
"MgmtSrvr::MgmtSrvr"
);
...
...
@@ -967,6 +967,9 @@ MgmtSrvr::versionNode(int processId, bool abort,
{
return
sendVersionReq
(
processId
);
}
else
version
=
0
;
if
(
m_versionRec
.
callback
!=
0
)
m_versionRec
.
callback
(
processId
,
version
,
this
,
0
);
m_versionRec
.
inUse
=
false
;
...
...
ndb/src/mgmsrv/Services.cpp
View file @
95eed721
...
...
@@ -1252,7 +1252,7 @@ void
MgmStatService
::
log
(
int
eventType
,
const
Uint32
*
theData
,
NodeId
nodeId
){
Uint32
threshold
=
0
;
LogLevel
::
EventCategory
cat
;
LogLevel
::
EventCategory
cat
=
LogLevel
::
llInvalid
;
int
i
;
for
(
i
=
0
;
(
unsigned
)
i
<
EventLogger
::
matrixSize
;
i
++
){
...
...
@@ -1262,6 +1262,8 @@ MgmStatService::log(int eventType, const Uint32* theData, NodeId nodeId){
break
;
}
}
if
(
cat
==
LogLevel
::
llInvalid
)
return
;
char
m_text
[
256
];
EventLogger
::
getText
(
m_text
,
sizeof
(
m_text
),
eventType
,
theData
,
nodeId
);
...
...
ndb/tools/desc.cpp
View file @
95eed721
...
...
@@ -74,11 +74,11 @@ int main(int argc, const char** argv){
ndbout
<<
"-- Indexes -- "
<<
endl
;
ndbout
<<
"PRIMARY KEY("
;
unsigned
j
;
for
(
j
=
0
;
j
<
pTab
->
getNoOfPrimaryKeys
();
j
++
)
for
(
j
=
0
;
(
int
)
j
<
pTab
->
getNoOfPrimaryKeys
();
j
++
)
{
const
NdbDictionary
::
Column
*
col
=
pTab
->
getColumn
(
j
);
ndbout
<<
col
->
getName
();
if
(
j
<
pTab
->
getNoOfPrimaryKeys
()
-
1
)
if
(
(
int
)
j
<
pTab
->
getNoOfPrimaryKeys
()
-
1
)
ndbout
<<
", "
;
}
ndbout
<<
") - UniqueHashIndex"
<<
endl
;
...
...
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