1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-13 23:02:14 +03:00

MCOL-850 - merged from develop-1.0

This commit is contained in:
David Hill
2017-08-09 16:01:20 -05:00
parent df108ca7fb
commit 42867bc8ad
9 changed files with 68 additions and 33 deletions

View File

@@ -291,3 +291,27 @@ int main (int argc, char** argv)
return 0;
}
// common functions
//
// Check Active alarms
//
// Use a mutex to limit the number of calls
//
pthread_mutex_t THREAD_LOCK;
bool ServerMonitor::checkActiveAlarm(const int alarmid, const std::string moduleName, const std::string deviceName)
{
Oam oam;
pthread_mutex_lock(&THREAD_LOCK);
bool status = oam.checkActiveAlarm(alarmid, moduleName, deviceName);
pthread_mutex_unlock(&THREAD_LOCK);
return status;
}