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
875f8abd
Commit
875f8abd
authored
Sep 29, 2005
by
stewart@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge fixes - SingleUser logging
parent
116e4f2b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
5 deletions
+34
-5
ndb/include/mgmapi/ndb_logevent.h
ndb/include/mgmapi/ndb_logevent.h
+7
-3
ndb/src/common/debugger/EventLogger.cpp
ndb/src/common/debugger/EventLogger.cpp
+24
-0
ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
+2
-2
ndb/src/mgmapi/ndb_logevent.cpp
ndb/src/mgmapi/ndb_logevent.cpp
+1
-0
No files found.
ndb/include/mgmapi/ndb_logevent.h
View file @
875f8abd
...
...
@@ -148,9 +148,9 @@ extern "C" {
/** NDB_MGM_EVENT_CATEGORY_INFO */
NDB_LE_InfoEvent
=
49
,
/*
GREP
*/
NDB_LE_
GrepSubscriptionInfo
=
52
,
NDB_LE_GrepSubscriptionAlert
=
53
,
/*
SINGLE USER
*/
NDB_LE_
SingleUser
=
52
,
/* NDB_LE_ UNUSED = 53, */
/** NDB_MGM_EVENT_CATEGORY_BACKUP */
NDB_LE_BackupStarted
=
54
,
...
...
@@ -593,6 +593,10 @@ extern "C" {
unsigned
backup_id
;
unsigned
error
;
}
BackupAborted
;
/** Log event data @ref NDB_LE_SingleUser */
struct
{
unsigned
node_id
;
}
SingleUser
;
#ifndef DOXYGEN_FIX
};
#else
...
...
ndb/src/common/debugger/EventLogger.cpp
View file @
875f8abd
...
...
@@ -633,6 +633,27 @@ void getTextBackupAborted(QQQQ) {
theData
[
3
]);
}
void
getTextSingleUser
(
QQQQ
)
{
switch
(
theData
[
1
])
{
case
0
:
BaseString
::
snprintf
(
m_text
,
m_text_len
,
"Entering single user mode"
);
break
;
case
1
:
BaseString
::
snprintf
(
m_text
,
m_text_len
,
"Entered single user mode "
"Node %d has exclusive access"
,
theData
[
2
]);
break
;
case
2
:
BaseString
::
snprintf
(
m_text
,
m_text_len
,
"Exiting single user mode"
);
break
;
default:
BaseString
::
snprintf
(
m_text
,
m_text_len
,
"Unknown single user report %d"
,
theData
[
1
]);
break
;
}
}
#if 0
BaseString::snprintf(m_text,
m_text_len,
...
...
@@ -716,6 +737,9 @@ const EventLoggerBase::EventRepLogLevelMatrix EventLoggerBase::matrix[] = {
ROW
(
CreateLogBytes
,
LogLevel
::
llInfo
,
11
,
Logger
::
LL_INFO
),
ROW
(
InfoEvent
,
LogLevel
::
llInfo
,
2
,
Logger
::
LL_INFO
),
//Single User
ROW
(
SingleUser
,
LogLevel
::
llInfo
,
7
,
Logger
::
LL_INFO
),
// Backup
ROW
(
BackupStarted
,
LogLevel
::
llBackup
,
7
,
Logger
::
LL_INFO
),
ROW
(
BackupCompleted
,
LogLevel
::
llBackup
,
7
,
Logger
::
LL_INFO
),
...
...
ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp
View file @
875f8abd
...
...
@@ -1963,7 +1963,7 @@ Ndbcntr::execRESUME_REQ(Signal* signal){
jamEntry
();
signal
->
theData
[
0
]
=
EventReport
::
SingleUser
;
signal
->
theData
[
0
]
=
NDB_LE_
SingleUser
;
signal
->
theData
[
1
]
=
2
;
sendSignal
(
CMVMI_REF
,
GSN_EVENT_REP
,
signal
,
2
,
JBB
);
...
...
@@ -2248,7 +2248,7 @@ void Ndbcntr::execABORT_ALL_CONF(Signal* signal){
c_stopRec
.
stopReq
.
senderRef
=
0
;
// the command is done
signal
->
theData
[
0
]
=
EventReport
::
SingleUser
;
signal
->
theData
[
0
]
=
NDB_LE_
SingleUser
;
signal
->
theData
[
1
]
=
1
;
signal
->
theData
[
2
]
=
c_stopRec
.
stopReq
.
singleUserApi
;
sendSignal
(
CMVMI_REF
,
GSN_EVENT_REP
,
signal
,
3
,
JBB
);
...
...
ndb/src/mgmapi/ndb_logevent.cpp
View file @
875f8abd
...
...
@@ -289,6 +289,7 @@ struct Ndb_logevent_body_row ndb_logevent_body[]= {
ROW
(
BackupAborted
,
"backup_id"
,
2
,
backup_id
),
ROW
(
BackupAborted
,
"error"
,
3
,
error
),
ROW
(
SingleUser
,
"node_id"
,
1
,
node_id
),
{
NDB_LE_ILLEGAL_TYPE
,
0
,
0
,
0
,
0
,
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