You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-20 01:42:27 +03:00
Merge pull request #420 from mariadb-corporation/MCOL-1235-1
mcol-1235 - fix issue with too many files open
This commit is contained in:
@@ -553,7 +553,10 @@ static void alarmMessageThread(Configuration config)
|
|||||||
msg = fIos.read();
|
msg = fIos.read();
|
||||||
|
|
||||||
if (msg.length() <= 0)
|
if (msg.length() <= 0)
|
||||||
|
{
|
||||||
|
fIos.close();
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
//log.writeLog(__LINE__, "MSG RECEIVED: Process Alarm Message");
|
//log.writeLog(__LINE__, "MSG RECEIVED: Process Alarm Message");
|
||||||
|
|
||||||
@@ -585,16 +588,20 @@ static void alarmMessageThread(Configuration config)
|
|||||||
|
|
||||||
ALARMManager aManager;
|
ALARMManager aManager;
|
||||||
aManager.processAlarmReport(calAlarm);
|
aManager.processAlarmReport(calAlarm);
|
||||||
|
|
||||||
|
fIos.close();
|
||||||
}
|
}
|
||||||
catch (exception& ex)
|
catch (exception& ex)
|
||||||
{
|
{
|
||||||
string error = ex.what();
|
string error = ex.what();
|
||||||
log.writeLog(__LINE__, "EXCEPTION ERROR on read for ProcMgr_Alarm:" + error, LOG_TYPE_ERROR);
|
log.writeLog(__LINE__, "EXCEPTION ERROR on read for ProcMgr_Alarm:" + error, LOG_TYPE_ERROR);
|
||||||
|
fIos.close();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
catch(...)
|
catch(...)
|
||||||
{
|
{
|
||||||
log.writeLog(__LINE__, "EXCEPTION ERROR on read for ProcMgr_Alarm: Caught unknown exception!", LOG_TYPE_ERROR);
|
log.writeLog(__LINE__, "EXCEPTION ERROR on read for ProcMgr_Alarm: Caught unknown exception!", LOG_TYPE_ERROR);
|
||||||
|
fIos.close();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user