1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-25 20:23:16 +03:00

MCOL-4193: Delete unused OAM and applications, ProcMon, ProcMgr, and no longer build all tools for packages

This commit is contained in:
benthompson15
2020-12-02 13:14:25 -06:00
parent d2cc656fdf
commit 846f7fb29b
138 changed files with 311 additions and 69494 deletions

View File

@@ -27,8 +27,6 @@
#include "sessionmanager.h"
#include "socketclosed.h"
#include "alarmglobal.h"
#include "alarmmanager.h"
#include "liboamcpp.h"
#include "stopwatch.h"
#include "masterdbrmnode.h"
@@ -69,24 +67,6 @@
for (it = responses.begin(); it != responses.end(); it++) \
delete *it; }
#if 1
#define SEND_ALARM \
try { \
alarmmanager::ALARMManager alarmMgr; \
alarmMgr.sendAlarmReport("System", oam::DBRM_READ_ONLY, alarmmanager::SET); \
} \
catch (...) { }
#define CLEAR_ALARM \
try { \
alarmmanager::ALARMManager alarmMgr; \
alarmMgr.sendAlarmReport("System", oam::DBRM_READ_ONLY, alarmmanager::CLEAR); \
} \
catch (...) { }
#else
#define SEND_ALARM
#define CLEAR_ALARM
#endif
using namespace std;
using namespace messageqcpp;
using namespace logging;
@@ -302,8 +282,6 @@ void MasterDBRMNode::run()
IOSocket* s;
boost::thread* reader;
CLEAR_ALARM
while (!die)
{
s = new IOSocket();
@@ -648,7 +626,6 @@ retrycmd:
if (readOnly)
{
SEND_ALARM
slaveLock.unlock();
sendError(p->sock, ERR_READONLY);
goto out;
@@ -762,7 +739,6 @@ retrycmd:
{
if (!halting)
{
SEND_ALARM
undo();
readOnly = true;
slaveLock.unlock();
@@ -850,7 +826,6 @@ retrycmd:
{
if (!halting)
{
SEND_ALARM
ostringstream ostr;
ostr << "DBRM Controller: Caught network error. "
"Confirming command " << (uint32_t)cmd <<
@@ -1034,8 +1009,6 @@ int MasterDBRMNode::compareResponses(uint8_t cmd,
}
catch (exception&)
{
SEND_ALARM
readOnly = true;
ostringstream os;
os << "DBRM Controller: Network error on node 1. "
@@ -1055,8 +1028,6 @@ int MasterDBRMNode::compareResponses(uint8_t cmd,
for (it = responses.begin(), it2 = it + 1, i = 2; it2 != responses.end(); it++, it2++, i++)
if (**it != **it2 && !halting)
{
SEND_ALARM
ostringstream ostr;
#ifdef BRM_VERBOSE
cerr << "DBRM Controller: error: response from node " << i << " is different" << endl;