summaryrefslogtreecommitdiff
path: root/ndb/src/common/debugger/EventLogger.cpp
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2004-10-22 16:21:51 +0000
committerunknown <tomas@poseidon.ndb.mysql.com>2004-10-22 16:21:51 +0000
commit236e588a73589dea135568f00601586107286865 (patch)
tree8726e9ff88cce4368528297b233f4bd1748ceadb /ndb/src/common/debugger/EventLogger.cpp
parentf74303af57130ef84cfb796de058db3e10a868e9 (diff)
downloadmariadb-git-236e588a73589dea135568f00601586107286865.tar.gz
removing compiler warnings
Diffstat (limited to 'ndb/src/common/debugger/EventLogger.cpp')
-rw-r--r--ndb/src/common/debugger/EventLogger.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ndb/src/common/debugger/EventLogger.cpp b/ndb/src/common/debugger/EventLogger.cpp
index cd995631a04..8a09be9a0a7 100644
--- a/ndb/src/common/debugger/EventLogger.cpp
+++ b/ndb/src/common/debugger/EventLogger.cpp
@@ -1343,7 +1343,7 @@ EventLogger::log(int eventType, const Uint32* theData, NodeId nodeId,
{
Uint32 threshold = 0;
Logger::LoggerLevel severity = Logger::LL_WARNING;
- LogLevel::EventCategory cat;
+ LogLevel::EventCategory cat= LogLevel::llInvalid;
for(unsigned i = 0; i<EventLoggerBase::matrixSize; i++){
if(EventLoggerBase::matrix[i].eventType == eventType){
@@ -1353,6 +1353,9 @@ EventLogger::log(int eventType, const Uint32* theData, NodeId nodeId,
break;
}
}
+
+ if (cat == LogLevel::llInvalid)
+ return;
Uint32 set = ll?ll->getLogLevel(cat) : m_logLevel.getLogLevel(cat);
if (threshold <= set){