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
4345853e
Commit
4345853e
authored
Sep 05, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added timestamp to shutdown messages in ndbd
parent
0ef85808
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
ndb/src/kernel/main.cpp
ndb/src/kernel/main.cpp
+1
-1
ndb/src/kernel/vm/Emulator.cpp
ndb/src/kernel/vm/Emulator.cpp
+14
-12
No files found.
ndb/src/kernel/main.cpp
View file @
4345853e
...
...
@@ -57,7 +57,7 @@ int main(int argc, char** argv)
NDB_INIT
(
argv
[
0
]);
// Print to stdout/console
g_eventLogger
.
createConsoleHandler
();
g_eventLogger
.
setCategory
(
"
NDB
"
);
g_eventLogger
.
setCategory
(
"
ndbd
"
);
g_eventLogger
.
enable
(
Logger
::
LL_ON
,
Logger
::
LL_CRITICAL
);
g_eventLogger
.
enable
(
Logger
::
LL_ON
,
Logger
::
LL_ERROR
);
g_eventLogger
.
enable
(
Logger
::
LL_ON
,
Logger
::
LL_WARNING
);
...
...
ndb/src/kernel/vm/Emulator.cpp
View file @
4345853e
...
...
@@ -30,13 +30,15 @@
#include <NodeState.hpp>
#include <NdbMem.h>
#include <NdbOut.hpp>
#include <NdbMutex.h>
#include <NdbSleep.h>
#include <EventLogger.hpp>
extern
"C"
{
extern
void
(
*
ndb_new_handler
)();
}
extern
EventLogger
g_eventLogger
;
/**
* Declare the global variables
...
...
@@ -141,23 +143,23 @@ NdbShutdown(NdbShutdownType type,
switch
(
type
){
case
NST_Normal
:
ndbout
<<
"Shutdown initiated"
<<
endl
;
g_eventLogger
.
info
(
"Shutdown initiated"
)
;
break
;
case
NST_Watchdog
:
ndbout
<<
"Watchdog "
<<
shutting
<<
" system"
<<
endl
;
g_eventLogger
.
info
(
"Watchdog %s system"
,
shutting
)
;
break
;
case
NST_ErrorHandler
:
ndbout
<<
"Error handler "
<<
shutting
<<
" system"
<<
endl
;
g_eventLogger
.
info
(
"Error handler %s system"
,
shutting
)
;
break
;
case
NST_ErrorHandlerSignal
:
ndbout
<<
"Error handler signal "
<<
shutting
<<
" system"
<<
endl
;
g_eventLogger
.
info
(
"Error handler signal %s system"
,
shutting
)
;
break
;
case
NST_Restart
:
ndbout
<<
"Restarting system"
<<
endl
;
g_eventLogger
.
info
(
"Restarting system"
)
;
break
;
default:
ndbout
<<
"Error handler "
<<
shutting
<<
" system"
<<
" (unknown type: "
<<
(
unsigned
)
type
<<
")"
<<
endl
;
g_eventLogger
.
info
(
"Error handler %s system (unknown type: %u)"
,
shutting
,
(
unsigned
)
type
)
;
type
=
NST_ErrorHandler
;
break
;
}
...
...
@@ -173,7 +175,7 @@ NdbShutdown(NdbShutdownType type,
/**
* Very serious, don't attempt to free, just die!!
*/
ndbout
<<
"Watchdog shutdown completed - "
<<
exitAbort
<<
endl
;
g_eventLogger
.
info
(
"Watchdog shutdown completed - %s"
,
exitAbort
)
;
#if defined VM_TRACE && ( ! ( defined NDB_OSE || defined NDB_SOFTOSE) )
signal
(
6
,
SIG_DFL
);
abort
();
...
...
@@ -227,7 +229,7 @@ NdbShutdown(NdbShutdownType type,
}
if
(
type
!=
NST_Normal
&&
type
!=
NST_Restart
){
ndbout
<<
"Error handler shutdown completed - "
<<
exitAbort
<<
endl
;
g_eventLogger
.
info
(
"Error handler shutdown completed - %s"
,
exitAbort
)
;
#if ( defined VM_TRACE || defined ERROR_INSERT ) && ( ! ( defined NDB_OSE || defined NDB_SOFTOSE) )
signal
(
6
,
SIG_DFL
);
abort
();
...
...
@@ -243,7 +245,7 @@ NdbShutdown(NdbShutdownType type,
exit
(
restartType
);
}
ndbout
<<
"Shutdown completed - exiting"
<<
endl
;
g_eventLogger
.
info
(
"Shutdown completed - exiting"
)
;
}
else
{
/**
* Shutdown is already in progress
...
...
@@ -253,7 +255,7 @@ NdbShutdown(NdbShutdownType type,
* If this is the watchdog, kill system the hard way
*/
if
(
type
==
NST_Watchdog
){
ndbout
<<
"Watchdog is killing system the hard way"
<<
endl
;
g_eventLogger
.
info
(
"Watchdog is killing system the hard way"
)
;
#if defined VM_TRACE && ( ! ( defined NDB_OSE || defined NDB_SOFTOSE) )
signal
(
6
,
SIG_DFL
);
abort
();
...
...
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