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
b45d9f1c
Commit
b45d9f1c
authored
Sep 15, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
8cb57f59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
storage/ndb/include/mgmapi/ndb_logevent.txt
storage/ndb/include/mgmapi/ndb_logevent.txt
+56
-0
No files found.
storage/ndb/include/mgmapi/ndb_logevent.txt
0 → 100644
View file @
b45d9f1c
To add a new event edit the following 3 files in totally 5 places:
example shows EventBufferUsage added.
Public interface:
*** ndb/include/mgmapi/ndb_logevent.h
/** NDB_MGM_EVENT_CATEGORY_INFO */
NDB_LE_EventBufferUsage = 58
...
/** Log event specific data for for corresponding NDB_LE_ log event */
struct {
unsigned usage;
unsigned avail;
} EventBufferUsage;
*** ndb/src/mgmapi/ndb_logevent.cpp
ROW( EventBufferUsage, "usage", 1, usage),
ROW( EventBufferUsage, "avail", 2, avail),
Internal impl:
*** ndb/src/common/debugger/EventLogger.cpp
void getTextEventBufferUsage(QQQQ) {
BaseString::snprintf(m_text, m_text_len,
"Event buffer usage: %d(%d\%)",
theData[1],
theData[2] ? (theData[1]*100)/theData[2] : 0);
}
...
ROW(EventBufferUsage, LogLevel::llInfo, 7, Logger::LL_INFO ),
*** sending event from ndbd kernel
Uint32 *data= signal->getDataPtrSend();
data[0]= NDB_LE_EventBufferUsage;
data[1]= 0;
data[2]= 0;
sendSignal(CMVMI_REF, GSN_EVENT_REP, signal, 3, JBB);
*** sending event from ndbapi (internal)
Uint32 data[3];
data[0]= NDB_LE_EventBufferUsage;
data[1]= 0;
data[2]= 0;
m_ndb->theImpl->send_event_report(data,3);
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