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
183ac115
Commit
183ac115
authored
Jun 12, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge poseidon.ndb.mysql.com:/home/tomas/mysql-4.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-main
parents
7f3ee1e5
dfe27cf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
32 deletions
+40
-32
ndb/src/mgmsrv/MgmtSrvr.cpp
ndb/src/mgmsrv/MgmtSrvr.cpp
+34
-25
ndb/src/mgmsrv/Services.cpp
ndb/src/mgmsrv/Services.cpp
+6
-7
No files found.
ndb/src/mgmsrv/MgmtSrvr.cpp
View file @
183ac115
...
@@ -119,41 +119,50 @@ MgmtSrvr::logLevelThreadRun()
...
@@ -119,41 +119,50 @@ MgmtSrvr::logLevelThreadRun()
/**
/**
* Handle started nodes
* Handle started nodes
*/
*/
EventSubscribeReq
req
;
req
=
m_event_listner
[
0
].
m_logLevel
;
req
.
blockRef
=
_ownReference
;
SetLogLevelOrd
ord
;
m_started_nodes
.
lock
();
m_started_nodes
.
lock
();
while
(
m_started_nodes
.
size
()
>
0
){
if
(
m_started_nodes
.
size
()
>
0
)
Uint32
node
=
m_started_nodes
[
0
];
{
m_started_nodes
.
erase
(
0
,
false
);
// calculate max log level
m_started_nodes
.
unlock
();
EventSubscribeReq
req
;
{
LogLevel
tmp
;
m_event_listner
.
lock
();
for
(
int
i
=
m_event_listner
.
m_clients
.
size
()
-
1
;
i
>=
0
;
i
--
)
tmp
.
set_max
(
m_event_listner
[
i
].
m_logLevel
);
m_event_listner
.
unlock
();
req
=
tmp
;
}
req
.
blockRef
=
_ownReference
;
while
(
m_started_nodes
.
size
()
>
0
)
{
Uint32
node
=
m_started_nodes
[
0
];
m_started_nodes
.
erase
(
0
,
false
);
m_started_nodes
.
unlock
();
setEventReportingLevelImpl
(
node
,
req
);
setEventReportingLevelImpl
(
node
,
req
);
ord
=
m_nodeLogLevel
[
node
];
SetLogLevelOrd
ord
;
setNodeLogLevelImpl
(
node
,
ord
);
ord
=
m_nodeLogLevel
[
node
];
setNodeLogLevelImpl
(
node
,
ord
);
m_started_nodes
.
lock
();
}
m_started_nodes
.
lock
();
}
}
m_started_nodes
.
unlock
();
m_started_nodes
.
unlock
();
m_log_level_requests
.
lock
();
m_log_level_requests
.
lock
();
while
(
m_log_level_requests
.
size
()
>
0
){
while
(
m_log_level_requests
.
size
()
>
0
)
req
=
m_log_level_requests
[
0
];
{
EventSubscribeReq
req
=
m_log_level_requests
[
0
];
m_log_level_requests
.
erase
(
0
,
false
);
m_log_level_requests
.
erase
(
0
,
false
);
m_log_level_requests
.
unlock
();
m_log_level_requests
.
unlock
();
LogLevel
tmp
;
tmp
=
req
;
if
(
req
.
blockRef
==
0
){
if
(
req
.
blockRef
==
0
){
req
.
blockRef
=
_ownReference
;
req
.
blockRef
=
_ownReference
;
setEventReportingLevelImpl
(
0
,
req
);
setEventReportingLevelImpl
(
0
,
req
);
}
else
{
}
else
{
ord
=
req
;
SetLogLevelOrd
ord
;
ord
=
req
;
setNodeLogLevelImpl
(
req
.
blockRef
,
ord
);
setNodeLogLevelImpl
(
req
.
blockRef
,
ord
);
}
}
m_log_level_requests
.
lock
();
m_log_level_requests
.
lock
();
...
@@ -1291,7 +1300,7 @@ MgmtSrvr::setEventReportingLevelImpl(int nodeId,
...
@@ -1291,7 +1300,7 @@ MgmtSrvr::setEventReportingLevelImpl(int nodeId,
{
{
if
(
nodeTypes
[
nodeId
]
!=
NODE_TYPE_DB
)
if
(
nodeTypes
[
nodeId
]
!=
NODE_TYPE_DB
)
continue
;
continue
;
if
(
okToSendTo
(
nodeId
,
fals
e
))
if
(
okToSendTo
(
nodeId
,
tru
e
))
continue
;
continue
;
if
(
ss
.
sendSignal
(
nodeId
,
&
ssig
)
==
SEND_OK
)
if
(
ss
.
sendSignal
(
nodeId
,
&
ssig
)
==
SEND_OK
)
{
{
...
...
ndb/src/mgmsrv/Services.cpp
View file @
183ac115
...
@@ -1258,13 +1258,12 @@ Ndb_mgmd_event_service::update_max_log_level(const LogLevel &log_level)
...
@@ -1258,13 +1258,12 @@ Ndb_mgmd_event_service::update_max_log_level(const LogLevel &log_level)
void
void
Ndb_mgmd_event_service
::
update_log_level
(
const
LogLevel
&
tmp
)
Ndb_mgmd_event_service
::
update_log_level
(
const
LogLevel
&
tmp
)
{
{
if
(
!
(
tmp
==
m_logLevel
)){
m_logLevel
=
tmp
;
m_logLevel
=
tmp
;
EventSubscribeReq
req
;
EventSubscribeReq
req
;
req
=
tmp
;
req
=
tmp
;
// send update to all nodes
req
.
blockRef
=
0
;
req
.
blockRef
=
0
;
m_mgmsrv
->
m_log_level_requests
.
push_back
(
req
);
m_mgmsrv
->
m_log_level_requests
.
push_back
(
req
);
}
}
}
void
void
...
...
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